Skip to content
This repository has been archived by the owner on Sep 28, 2024. It is now read-only.

Elefrant/elefrant-util

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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