Giter VIP home page Giter VIP logo

alga-js's Introduction

Alga.js logo

Downloads Version License


Alga.js

Alga.js is a JavaScript helper to help build UI components by using any of modern web frameworks or libraries, 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. Don't forget to use --save-dev flag when installing it.

npm install alga-js --save-dev

#or

yarn add alga-js --dev

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.

// ES modules
import { paginate, pages, pageInfo, pagination, ... } from 'alga-js/array' // highly recommended

import { array, object, string, number, func, date, ...others* } from 'alga-js' // don't use this import
import * as $ from 'alga-js' // don't use this import

// Node/CommonJS modules
const $ = require('alga-js')  // other than $, you can use algaJs or any variable name

// UMD (AMD/IIFE)
//<script src="alga-umd.js"></script>

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

// Tree-shakable // not recommended
import { paginate, pages, ... } from 'alga-js/lib/array.js'
import { weeks } from 'alga-js/lib/date.js' // or
import { ...[helperMethod]* } from 'alga-js/lib/[helperFile].js'

alga-js's People

Contributors

tedirghazali avatar utitofon-udoekong avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

alga-js's Issues

$array.show() no longer working

The latest update seems to have removed array.show(). Would like to know what is the replacement for this function. Below is my usage example
Screenshot_18

Error I'm getting is this
Screenshot_1

ReferenceError: Can't find variable: $array

can you help me i have this problem with vue3 + vite

I have imported
import { $array, $object } from '../assets/js/alga.js'

but I am getting below error
Unhandled Promise Rejection: ReferenceError: Can't find variable: $array

i have a probleme

can you help me i have this probleme with npm

sudo npm install alga-js

Password:
npm ERR! code ENOSELF
npm ERR! Refusing to install package with name "alga-js" under a package
npm ERR! also called "alga-js". Did you name your project the same
npm ERR! as the dependency you're installing?
npm ERR!
npm ERR! For more information, see:
npm ERR! https://docs.npmjs.com/cli/install#limitations-of-npms-install-algorithm

npm ERR! A complete log of this run can be found in:
npm ERR! /Users/macbookair/.npm/_logs/2021-03-21T03_29_48_115Z-debug.log

Array.uniq throws error on vite

I am using nuxt 3 and I want to implement a filter method by comparing dates in my array of objects to a future date then returning an array satisfying the condition like below
Screenshot_6

I thought of using array.uniq but vite throws an error that it is not found
Screenshot_7

Can this be an internal issue?

currency select dropdown

hi, i've watched your video on youtube, and then I was looking for this URL => github.com/tedirghazali/pidie for currency selector, but I don't know I found alga-js instead of pidie. Please tell me where can I find this,.
Thank you!

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.