String.Inflector 0.1

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



Details

Author
Stian Didriksen
Current version
0.1
GitHub
stipsan/String.Inflector.js
Downloads
3275
Category
Native
Tags
Report
GitHub Issues

Releases


Dependencies

  • core:1.2.4/String/core: 1.2.4
  • core:1.2.4/$util/core: 1.2.4
  • core:1.2.4/Array/core: 1.2.4

How to use

Pluralize

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

Singularize

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

isSingular and isPlural

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

Discuss

A note on comments here: These comments are moderated. No comments will show up until they are approved. Comments that are not productive (i.e. inflammatory, rude, etc) will not be approved.

Found a bug in this plugin? Please report it this repository's Github Issues.

blog comments powered by Disqus