0.0.1 • Published 10 years ago
js-inflector v0.0.1
var inflect = inflector.start();var capital = inflect(someValue, 'capital');
//--> TreeModify multiple word states at once:
var pluralAndCapital = inflect(someValue, ['capital', 'plural']);
//--> TreesSet a group state:
inflector.group({
'properPlural': ['capital', 'plural']
});With a group state:
var pluralAndCapital = inflect(someValue, 'properPlural');
//--> Trees0.0.1
10 years ago