microutils.js
v0.2.0
Published
Javascript utils library
Downloads
1
Readme
Microutils
Javascript utility library with utilities similar to lodash but micro sized.
Installation
The module is packaged for all module style. The main one in for ES6 import.
ES6
For general import.
import microutils from 'microutils.js';
For scoped import (better size)
import difference from 'microutils.js/array/difference';
CommonJS
const microutils = require('microutils.js');
const difference = require('microutils.js/array/difference.cjs');
IIFE (Immediatly Invocked Function Env)
This for browser environment generally. It will create a microutils global variable.
<script src="./node_modules/microutils.js/index.iife.js"></script>
You can also import individual functions
<script src="./node_modules/microutils.js/array/difference.iife.js"></script>