elefrant-util
v0.2.2
Published
Utils functions for Elefrant Framework.
Downloads
2
Maintainers
Readme
Elefrant Util
Install
$ npm install --save elefrant-util
Usage
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.
format: util.format
Underscore.String functions
And, added new:
Filename
Extract the name from a file name.
util.format.filename('util.js');
// Result: 'util'
Downlize
Get the value with a lower Case first character..
util.format.downlize('ElefrantUtils');
// Result: 'elefrantUtils'
License
MIT © Elefrant