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