$ npm install --save elefrant-util
Elefrant utils come with a bunch of basic libraries.
var util = require('elefrant-util');
// Glob functions
var glob = util.glob;
// Lodash functions
var _ = util.lodash;
// Chalk functions
var chalk = util.chalk;
// Format functions
var format = util.format;
// Async functions
var async = 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