simple-pluralise

1.0.1 • Public • Published

Simple Pluralise

A very simple tool to pluralise words.

Example Usage

var pluralise = require('simple-pluralise');
 
// General Cases
pluralise(1, 'bot') // => 'bot'
pluralise(2, 'bots') // => 'bot'
 
// Custom plurals 
pluralise(1, 'wolf', 'wolves') // => 'wolf'
pluralise(2, 'wolf', 'wolves') // => 'wolves'

License

MIT License

Readme

Keywords

Package Sidebar

Install

npm i simple-pluralise

Weekly Downloads

4

Version

1.0.1

License

MIT

Unpacked Size

12.4 kB

Total Files

7

Last publish

Collaborators

  • ahuman