Global and most common helpers for javascript
npm install utilify-js


Global and most common helpers for javascript
- Main
- Getting started
- External Libs
- Methods
- Tests
- License
- Dependencies
``text`
dist/
├── utilify.js (UMD)
├── utilify.min.js (UMD, compressed)
├── utilify.common.js (CommonJS, default)
└── utilify.esm.js (ES Module)
Download the script here and include it.
`html`
Utilify.js supports npm under the name utilify-js.
`shell`
npm install utilify-js --save
Utilify.js can also be loaded as an CommonJS or ES6 module (recomended).
`js
// CommomJS
var Utilify = require('utilify-js');
// ES6 module
import Utilify from 'utilify-js';
`
With UMD (Universal Module Definition), the package is available on global var UtilityJS.
`js
// Initialize constructor
var utilify = new UtilifyJS();
// GlobalHelpers
var globalHelpers = utilify.globalHelpers;
// LocationHelpers
var locationHelpers = utilify.locationHelpers;
`
can be found on original repository: https://github.com/nbubna/storeVersion inside is:
v2.7.0Usage:
`js
// Store2
var store = utilify.storage;
`$3
Docs for JavaScript Cookie can be found on original repository: https://github.com/js-cookie/js-cookieVersion inside is:
v2.2.0Usage:
`js
// JavaScript Cookie
var cookies = utilify.cookies;
`
Methods
* Array Helpers
* Global Helpers
* Location Helpers
* Number Helpers
* Object Helpers
* String Helpers
* Validate Helpers
Tests
Tests are using mocha. To run the tests use:
`shell
$ npm test
`License
Utilify.js is open-sourced software licensed under the MIT license.
Dependencies
jQuery 1.8.3+ and GMaps API for
locationHelpers.getUserLocation()` method