Alga.js
Alga.js is a JavaScript helper to help build UI components by using any of modern web frameworks or libraries, especially the frameworks that we currently use like Vue, Petite-Vue, Alpine.js and Vanilla Web Components to produce our custom elements, see the documentation here or visit this link https://algajs.tedir.dev
.
Installation
This Alga.js is a pure JavaScript plugin, so it doesn't have any dependencies and you can install it by using NPM or Yarn.
npm install alga-js
yarn add alga-js
Usage
You may want to use one of two JS modules either you use ES module or UMD module, ES module is highly recommended for using alongside modern web frameworks, but if you want it to run in the browser or in a server side, UMD module is the option.
import { paginate, pages, pageInfo, pagination, ... } from 'alga-js/array'
import { array, object, string, number, func, date, ...others* } from 'alga-js'
import * as $ from 'alga-js'
const $ = require('alga-js')
import { $array, $object, $string, ... } from 'alga-js'
import * as _ from 'alga-js'
import * as Alga from 'alga-js'
import { paginate, pages, ... } from 'alga-js/lib/array.js'
import { weeks } from 'alga-js/lib/date.js'
import { ...[helperMethod]* } from 'alga-js/lib/[helperFile].js'