0.1.2 • Published 8 years ago
utilityjs v0.1.2
UtilityJS
The missing utility functions for JavaScript. Inspired by the built-in functions of
- PHP
- Ruby
- Python
Installation
You have many options to install UtilityJS
Using NPM
$ npm install utilityjs --save
Using Bower
$ bower install utilityjs --save
Using Git
$ git clone "https://github.com/faressoft/utilityjs.git"
Usage
Can be used with node.js, amd and in the browser.
Node.js
var u = require('utilityjs');
AMD (RequireJS)
require(['lib/utilityjs.js'], function(u) {
// Do your magic here
});
Browser
- You have to include UtilityJS in your document.
- Then you can use its api through the object
u
.
<script src="lib/utilityjs.js" type="text/javascript"></script>
Testing
To run tests use the following command, but make sure you that all the devDependencies
are installed.
$ npm test
License
MIT © Mohammad Fares