https://github.com/philipszdavido/mypluralize
A Node.js module that returns the plural or singular form of any noun
https://github.com/philipszdavido/mypluralize
javascript node-module nodejs npm npm-module typescript
Last synced: about 1 year ago
JSON representation
A Node.js module that returns the plural or singular form of any noun
- Host: GitHub
- URL: https://github.com/philipszdavido/mypluralize
- Owner: philipszdavido
- License: mit
- Created: 2017-10-09T16:41:51.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2017-11-01T14:15:01.000Z (over 8 years ago)
- Last Synced: 2025-03-25T15:39:20.986Z (about 1 year ago)
- Topics: javascript, node-module, nodejs, npm, npm-module, typescript
- Language: JavaScript
- Homepage:
- Size: 45.9 KB
- Stars: 14
- Watchers: 2
- Forks: 12
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
[](https://travis-ci.org/philipszdavido/mypluralize)
[](https://coveralls.io/github/philipszdavido/mypluralize?branch=master)
[](https://badge.fury.io/js/mypluralize)
# mypluralize
A Node.js module that returns the plural or singular 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');
console.log(boys);
var thief = pluralise.getSingular('Thieves');
console.log(thief);
```
```sh
Output should be 'Boys'
Output should be 'Thief'
```
### TypeScript
```typescript
import { getPlural } from 'mypluralize';
console.log(getPlural('Goose'))
console.log(getSingular('Guns'))
```
```sh
Output should be 'Geese'
Output should be 'Gun'
```
### AMD
```javascript
define(function(require,exports,module){
var pluralise = require('mypluralize');
});
```
## Test
```sh
npm run test
```