# ts-pluralizer

> A simple typeScript library for handling plurals

Latest version **1.0.2** (published 2022-01-06) · MIT license · 0 weekly downloads

## Install

```sh
npm install ts-pluralizer
pnpm add ts-pluralizer
yarn add ts-pluralizer
bun add ts-pluralizer
```

## Health

**Score 25/100 (F)** — status: abandoned.

Positive: has types; no vulnerabilities; high quality score.

Warnings: low downloads; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.2 |
| Published | 2022-01-06 |
| First published | 2022-01-06 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 6.6 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | gustrb |
| Maintainers | gustrb |

## Links

- npm: https://www.npmjs.com/package/ts-pluralizer
- Repository: https://github.com/Gustrb/pluralizer
- Homepage: https://github.com/Gustrb/pluralizer#readme
- Issues: https://github.com/Gustrb/pluralizer/issues
- npm.io page: https://npm.io/package/ts-pluralizer

## Recent versions

- 1.0.2 (latest) — 2022-01-06
- 1.0.1 — 2022-01-06
- 1.0.0 — 2022-01-06

## README

# pluralizer

This library is a simple pluralizer, it can add plurals to words

# Usage

```typescript

const pluralizerInstance = pluralizer();

pluralizerInstance.pluralize('book'); // Returns books
pluralizerInstance.pluralize('person', { pluralForm: 'people' }); // Returns people

pluralizerInstance.pluralizeIfNeceesary(1, 'person', { pluralForm: 'people' }); // Returns person
pluralizerInstance.pluralizeIfNeceesary(2, 'person', { pluralForm: 'people' }); // Returns people

```

# Installation

It is really simple to install, since the package is hosted in NPM

```
$ npm i ts-pluralizer
```

Or

```
$ yarn add ts-pluralizer
```

---
_Source: https://npm.io/package/ts-pluralizer · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
