0.2.2 • Published 9 years ago

elefrant-util v0.2.2

Weekly downloads
1
License
MIT
Repository
github
Last release
9 years ago

Elefrant Util

wercker status

Dependency Status

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