A collection of util moduels which work both on the backend and in the broswer.
npm install utils-belt-js --save
var utilsBelt = require('utils-belt-js'),
stringUtils = utilsBelt.StringUtils;
var blankString = ' ';
if(stringUtils.isBlank(blankString)){
// Will return true
}
// methods also can use callback with results in them
stringUtils.isBlank(blankString, function(isBlank){
if(isBlank){
// Will return true
}
});
// methods are also null and undefined safe
if(stringUtils.isBlank(undefinedString)){
// Will return true
}
npm test
Add modules and functions for any common utility issues that come along. Add unit tests for any new or changed functionality. Lint and test your code. All modules should run on the browser.
- 0.1.0 Initial release
- 0.1.1 Added StringUtils
- 0.1.3 Added ArrayUtils.shuffle()