Installation

How to install Alga.js?

Download

if you want to download Alga.js directly and save it to your directory, you can go to github link herearrow-up-right 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/arrow-up-right

jsdelivr cdn: https://cdn.jsdelivr.net/npm/alga-js@0.0.1-alpha8/arrow-up-right

bundle run cdn: https://bundle.run/alga-js@0.0.1-alpha8arrow-up-right

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'

Last updated