@plexis/to-plural

0.0.22 • Public • Published

@plexis/to-plural

Converts a word to its plural form

Installation

npm i @plexis/to-plural

Usage

import toPlural from '@plexis/to-plural';

toPlural('example'); // => 'examples'
toPlural('example', 10); // => 'examples'
toPlural('example', 1); // => 'example'
toPlural('example', 'examplez', 10); // => 'examplez'
toPlural('example', 'examplez', 1); // => 'example'

Aliases

import toPlural from '@plexis/to-plural';
import {toPlural, pluralize} from 'plexis';

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 0.0.22
    0
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 0.0.22
    0
  • 0.0.21
    0
  • 0.0.20
    0

Package Sidebar

Install

npm i @plexis/to-plural

Weekly Downloads

0

Version

0.0.22

License

MIT

Unpacked Size

3.5 kB

Total Files

4

Last publish

Collaborators

  • vorillaz