forked from enviPath/enviPy
Current Dev State
This commit is contained in:
52
static/js/ketcher2/node_modules/plur/readme.md
generated
vendored
Normal file
52
static/js/ketcher2/node_modules/plur/readme.md
generated
vendored
Normal file
@ -0,0 +1,52 @@
|
||||
# plur [](https://travis-ci.org/sindresorhus/plur)
|
||||
|
||||
> Naively pluralize a word
|
||||
|
||||
|
||||
## Install
|
||||
|
||||
```
|
||||
$ npm install --save plur
|
||||
```
|
||||
|
||||
|
||||
## Usage
|
||||
|
||||
```js
|
||||
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](http://sindresorhus.com)
|
||||
Reference in New Issue
Block a user