0.0.1 • Published 8 years ago

js-inflector v0.0.1

Weekly downloads
2
License
MIT
Repository
github
Last release
8 years ago
var inflect = inflector.start();
var capital = inflect(someValue, 'capital');  
//--> Tree

Modify multiple word states at once:

var pluralAndCapital = inflect(someValue, ['capital', 'plural']);  
//--> Trees

Set a group state:

inflector.group({
  'properPlural': ['capital', 'plural']
});

With a group state:

var pluralAndCapital = inflect(someValue, 'properPlural');  
//--> Trees