1.0.0 • Published 7 years ago

singular-or-plural v1.0.0

Weekly downloads
3
License
MIT
Repository
github
Last release
7 years ago

singular-or-plural

Select the singular or plural word based on the count.

Follows the following rule: If it ends with one but not eleven, it's singular.

Install

npm install schas002/singular-or-plural

Usage

var singularOrPlural = require("singular-or-plural");

singularOrPlural(42, "unicorn", "unicorns"); // ==> "unicorns"

Maintainer

  • Andrew Zyabin - @schas002

Contribute

We'd love you on board! :D You just need to follow the code of conduct, which is: don't be rude.

License

MIT