WARNING THIS REPO IS OLD SWITCH TO @universalweb/acid INSTEAD
What is Acidjs?
Acidjs is a robust, modern, modular, & async focused Javascript utility library.
INSTALL Acidjs
npm i @universalweb/acid
(Case sensitive)
NodeJS Module Import Syntax
const { isArray } = require('@universalweb/acid');
const utility = require('@universalweb/acid');
ES Module Import Syntax
import { isArray } from '@universalweb/acid';
import * as utility from '@universalweb/acid';
ES Browser Module Import Syntax
import { isArray } from './browser.es.js';
import * as utility from './browser.es.js';
Script tag
<script id="AcidLib" data-index="main.js" defer src="browser.js"></script>
After the document is ready Acid looks for the id of "AcidLib".
If a "data-index" attribute is found it'll use the value as a URL (default URL is "/index.js") and import it as a script.
LINKS
Methods
All methods are available from the root object $ or can be imported using import export syntax found in the module folder.
If extreme tree shaking and compression is required use the source folder located on the github repo.
© copyright 2022 Universal Web