0.0.3 • Published 7 years ago
sample-mypluralize v0.0.3
sample-mypluralize
Create a simple Typescript package. A node.js module that returns the plural form of any noun.
Installation
npm install sample-mypluralize --save
yarn add sample-mypluralize
bower install sample-mypluralize --saveUsage
Javascript
var pluralise = require('sample-mypluralize');
var boys = pluralise.getPlural('Boy');Output should be 'Boys'Typescript
import { getPlural } from 'sample-mypluralize'
console.log(getPlural('Goose'))Output should be 'Geese'AMD
define(function(require, exports, module)) {
var pluralise = require('sample-mypluralize')
}Test
npm run test