utilify-js

0.10.1 • Public • Published

Build Status npm version David

Utilify.js

Global and most common helpers for javascript

Table of contents

Main

dist/
├── utilify.js        (UMD)
├── utilify.min.js    (UMD, compressed)
├── utilify.common.js (CommonJS, default)
└── utilify.esm.js    (ES Module)

Getting started

Direct download

Download the script here and include it.

<script type="text/javascript" src="utilify.min.js"></script>

Package Managers

Utilify.js supports npm under the name utilify-js.

npm install utilify-js --save

Module Loaders

Utilify.js can also be loaded as an CommonJS or ES6 module (recomended).

// CommomJS
var Utilify = require('utilify-js');
 
// ES6 module
import Utilify from 'utilify-js';

Usage

With UMD (Universal Module Definition), the package is available on global var UtilityJS.

// Initialize constructor
var utilify = new UtilifyJS();
 
// GlobalHelpers
var globalHelpers = utilify.globalHelpers;
 
// LocationHelpers
var locationHelpers = utilify.locationHelpers;

External Libs

Store2

Docs for Store2 can be found on original repository: https://github.com/nbubna/store

Version inside is: v2.7.0

Usage:

// Store2
var store = utilify.storage;

JavaScript Cookie

Docs for JavaScript Cookie can be found on original repository: https://github.com/js-cookie/js-cookie

Version inside is: v2.2.0

Usage:

// JavaScript Cookie
var cookies = utilify.cookies;

Methods

Tests

Tests are using mocha. To run the tests use:

$ 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

Dependents (2)

Package Sidebar

Install

npm i utilify-js

Weekly Downloads

72

Version

0.10.1

License

MIT

Unpacked Size

372 kB

Total Files

7

Last publish

Collaborators

  • zeindelf