asdf-games/node_modules/plur
2019-08-20 17:59:26 +02:00
..
index.js Migrated asdf library and all games / tests to gitea and added package.json to all projects. 2019-08-20 17:59:26 +02:00
license Migrated asdf library and all games / tests to gitea and added package.json to all projects. 2019-08-20 17:59:26 +02:00
package.json Migrated asdf library and all games / tests to gitea and added package.json to all projects. 2019-08-20 17:59:26 +02:00
readme.md Migrated asdf library and all games / tests to gitea and added package.json to all projects. 2019-08-20 17:59:26 +02:00

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