$ npm install --save elefrant-utilElefrant utils come with a bunch of basic libraries.
varutil=require('elefrant-util');// Glob functionsvarglob=util.glob;// Lodash functionsvar_=util.lodash;// Chalk functionsvarchalk=util.chalk;// Format functionsvarformat=util.format;// Async functionsvarasync=util.async;Be free to add new or extend libraries.
Underscore.String functions
And, added new:
Extract the name from a file name.
util.format.filename('util.js');// Result: 'util'Get the value with a lower Case first character..
util.format.downlize('ElefrantUtils');// Result: 'elefrantUtils'MIT © Elefrant