0b1n-test-library 中文文档教程
mypluralize
返回任何名词复数形式的 Node.js 模块
Installation
npm install mypluralize --save
yarn add mypluralize
bower install pluralize --save
Usage
Javascript
var pluralise = require('mypluralize');
var boys = pluralise.getPlural('Boy');
Output should be 'Boys'
TypeScript
import { getPlural } from 'mypluralize';
console.log(getPlural('Goose'))
Output should be 'Geese'
AMD
define(function(require,exports,module){
var pluralise = require('mypluralize');
});
Test
npm run test
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');
Output should be 'Boys'
TypeScript
import { getPlural } from 'mypluralize';
console.log(getPlural('Goose'))
Output should be 'Geese'
AMD
define(function(require,exports,module){
var pluralise = require('mypluralize');
});
Test
npm run test