plury
v0.0.12
Published
A Node.js module that returns the plural form of any noun
Downloads
11
Maintainers
Readme
Plury
A module that returns plural or singular form of any noun(-s). Full TypeScript support.
Installation
npm i plury
yarn add plury
Usage
Javascript
import { getPlural, getSingular } from 'plury';
const boys = getPlural('Boy');
console.log(boys); // => 'Boys'
const thief = getSingular('Thieves');
console.log(thief); // => 'Thief'
TypeScript
import { getPlural, getSingular } from 'plury';
console.log(getPlural('Goose')); // => 'Geese'
console.log(getSingular('Guns')); // => 'Gun'
Test
npm run test