inflectors
v1.0.2
Published
Pluralize, singularize, capitalize, classify, and so on..
Downloads
2
Readme
Inflectors
Pluralize, singularize, capitalize, classify, and so on..
Primarily extracted from Billy Data.
Usage
Node JS
NPM: npm install inflectors
var inflectors = require('inflectors');
console.log(inflectors.pluralize('computer'));
API
Pluralize
Pluralize a string based on added rules and common patterns.
Example
inflectors.pluralize('entry'); //-> entries
Singularize
Singularize a string based on added rules and common patterns.
Example
inflectors.singularize('fixes'); //-> fix
Classify
Classify a string.
Example
inflectors.classify('accessLevel'); //-> AccessLevel
Capitalize
Capitalize a string.
Example
inflectors.capitalize('watch'); //-> Watch