Nanoscale Parts Manufacturing

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

    1.0.3 • Public • Published

    Build Status Coverage Status

    mypluralize

    A Node.js module that returns the plural form of any noun

    Installation

    npm install mypluralize --save
    yarn add mypluralize
    bower install pluralize --save

    Usage

    JavaScript

    var pluralise = require('mypluralize');
    var boys = pluralise.getPlural('Boy');
    console.log(boys);
     
    var thief = pluralise.getSingular('Thieves');
    console.log(thief);
    Output should be 'Boys'
    Output should be 'Thief'

    TypeScript

    import { getPlural } from 'mypluralize';
    console.log(getPlural('Goose'))
    console.log(getSingular('Guns'))
    Output should be 'Geese'
    Output should be 'Gun'

    AMD

    define(function(require,exports,module){
      var pluralise = require('mypluralize');
    });

    Test

    npm run test

    Keywords

    none

    Install

    npm i mypluralize

    DownloadsWeekly Downloads

    9

    Version

    1.0.3

    License

    ISC

    Last publish

    Collaborators

    • chidumennamdi