An open API service indexing awesome lists of open source software.

https://github.com/lioneltay/typescript-module


https://github.com/lioneltay/typescript-module

Last synced: 2 months ago
JSON representation

Awesome Lists containing this project

README

        

# typescript-module

[![Build Status](https://travis-ci.org/lioneltay/typescript-module.svg?branch=master)](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
```