plury
    TypeScript icon, indicating that this package has built-in type declarations

    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

    3

    Version

    0.0.12

    License

    ISC

    Unpacked Size

    104 kB

    Total Files

    19

    Last publish

    Collaborators

    • codemecodeyou