https://github.com/lioneltay/typescript-module
https://github.com/lioneltay/typescript-module
Last synced: 2 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/lioneltay/typescript-module
- Owner: lioneltay
- License: mit
- Created: 2018-05-19T09:43:17.000Z (about 7 years ago)
- Default Branch: master
- Last Pushed: 2018-05-20T01:19:33.000Z (about 7 years ago)
- Last Synced: 2025-03-18T15:35:51.716Z (3 months ago)
- Language: TypeScript
- Size: 59.6 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# typescript-module
[](https://travis-ci.org/lioneltay/typescript-module)
# mypluralize
A Node.js module that returns the plural form of any noun
## Installation
```sh
npm install mypluralize --save
yarn add mypluralize
bower install pluralize --save
```## Usage
### Javascript
```javascript
var pluralise = require("mypluralize")
var boys = pluralise.getPlural("Boy")
``````sh
Output should be 'Boys'
```### TypeScript
```typescript
import { getPlural } from "mypluralize"
console.log(getPlural("Goose"))
``````sh
Output should be 'Geese'
```### AMD
```javascript
define(function(require, exports, module) {
var pluralise = require("mypluralize")
})
```## Test
```sh
npm run test
```