---
description: How to install Alga.js?
---

# Installation

#### Download

if you want to download Alga.js directly and save it to your directory, you can go to [github link here](https://github.com/tedirghazali/alga-js) or clone that github repository.

#### CDN

for CDN, we have 3 options here such as CDN from upkg, jsdelivr and bundle run, you can get its link below:

unpkg cdn: [https://unpkg.com/alga-js@0.0.1-alpha8/](https://unpkg.com/alga-js@0.0.1-alpha4/)

jsdelivr cdn: [https://cdn.jsdelivr.net/npm/alga-js@0.0.1-alpha8/](https://cdn.jsdelivr.net/npm/alga-js@0.0.1-alpha4/)

bundle run cdn: [https://bundle.run/alga-js@0.0.1-alpha8](https://bundle.run/alga-js@0.0.1-alpha4)

#### Node.js

if you want installing Alga-js to your system, we provide NPM or Yarn package for you.

```
//NPM
npm install alga-js //or
npm i alga-js

//Yarn
yarn add alga-js
```

On your javascript file you can import it like the code below:

```
//ES modules
import * as $ from 'alga-js' //or
import { array, object, string, ... } from 'alga-js'

// Not recommended
import { $array, $object, $string, ... } from 'alga-js' //or
import * as _ from 'alga-js' //or
import * as Alga from 'alga-js'

//Node or Common modules
const alga = require('alga-js')

//Tree-shaking
import { paginate, select, ... } from 'alga-js/lib/array.js'
import { calendar } from 'alga-js/lib/date.js'
import { ... } from 'alga-js/lib/....js'
```
