hw-form
Hashworks Forms
Installation
npm install hw-form --save
yarn add hw-form
bower install pluralize --save
Usage
Javascript
var pluralise = require('hw-form');
var boys = pluralise.getPlural('Boy');
Output should be 'Boys'
TypeScript
import { getPlural } from 'hw-form';
console.log(getPlural('Goose'))
Output should be 'Geese'
AMD
define(function(require,exports,module){
var pluralise = require('hw-form');
});
Test
npm run test