Extends the String native with inflector methods, like pluralize and singularize.
Switch branches/tags
Nothing to show
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
Source
Tests
README.md
package.yml

README.md

String.Inflector

Extends the String native with inflector methods, like pluralize and singularize.

Screenshot

How to Use

Pluralize

#JS
"cookie".pluralize(); // "cookies"

Singularize

#JS
"databases".singularize(); // "database"

isSingular and isPlural

#JS
"tools".isSingular(); // false
"tools".isPlural();   // true