tree: 59b8c9fa953865edda6834a9c8472e91d42a3715 [path history] [tgz]
  1. index.js
  2. license
  3. package.json
  4. readme.md
PoCs/nodejs_poc/node_modules/plur/readme.md

plur Build Status

Naively pluralize a word

Install

$ npm install --save plur

Usage

var plur = require('plur');

plur('unicorn', 4);
//=> 'unicorns'

plur('hero', 'heroes', 4);
//=> 'heroes'

API

plur(word, [plural], count)

word

Type: string

Word to pluralize.

plural

Type: string
Default: word + s

Pluralized word.

count

Type: number

Count to determine whether to use singular or plural.

License

MIT © Sindre Sorhus