Neoclassical Programming Multitude
Learn about our RFC process, Open RFC meetings & more.Join in the discussion! »

plury

0.0.12 • Public • Published

Header Logo

Plury

A module that returns plural or singular form of any noun(-s). Full TypeScript support.

Build Status Coverage Status

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

Install

npm i plury

DownloadsWeekly Downloads

36

Version

0.0.12

License

ISC

Unpacked Size

104 kB

Total Files

19

Last publish

Collaborators

  • avatar