@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';

Package Sidebar

Install

npm i @plexis/to-plural

Weekly Downloads

1

Version

0.0.22

License

MIT

Unpacked Size

3.5 kB

Total Files

4

Last publish

Collaborators

  • vorillaz