mypluralize-yansfil

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


Keywords
javascript, node-module, nodejs, npm, npm-module, typescript
License
ISC
Install
npm install mypluralize-yansfil@1.0.3

Documentation

Build Status Coverage Status npm version

mypluralize

A Node.js module that returns the plural or singular 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