1.0.3 • Published 7 years ago

mypluralize v1.0.3

Weekly downloads
2
License
ISC
Repository
github
Last release
7 years ago

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