# @snickbit/plural

> Pluralize and singularize any English word.

Latest version **1.0.20** (published 2023-08-05) · MIT license · 0 weekly downloads

## Install

```sh
npm install @snickbit/plural
pnpm add @snickbit/plural
yarn add @snickbit/plural
bun add @snickbit/plural
```

## Health

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

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

Warnings: low downloads.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.20 |
| Published | 2023-08-05 |
| First published | 2022-05-27 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | ESM + CommonJS |
| Node | >= 14.17 |
| Dependencies | 0 |
| Unpacked size | 20.6 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Maintainers | snickbit |

## Links

- npm: https://www.npmjs.com/package/@snickbit/plural
- npm.io page: https://npm.io/package/@snickbit/plural

## Recent versions

- 1.0.20 (latest) — 2023-08-05
- 1.0.1 (next) — 2022-08-26
- 1.0.19 — 2023-07-25
- 1.0.18 — 2023-07-19
- 1.0.17 — 2023-07-14
- 1.0.16 — 2023-06-29
- 1.0.15 — 2023-05-23
- 1.0.14 — 2023-03-03
- 1.0.13 — 2023-03-03
- 1.0.12 — 2022-11-19
- 1.0.11 — 2022-11-16
- 1.0.10 — 2022-11-14
- 1.0.9 — 2022-10-10
- 1.0.8 — 2022-10-09
- 1.0.7 — 2022-09-30
- … 12 more at https://npm.io/package/@snickbit/plural/versions

## README

# @snickbit/plural

<!--START_SECTION:readmes-description-->

- Pluralizes strings
- Singularizes strings
- Written in TypeScript
- Zero dependencies

<!--END_SECTION:readmes-description-->

## Installation
```bash
pnpm add @snickbit/plural
```

```bash
yarn add @snickbit/plural
```

```bash
npm i @snickbit/plural
```

## Usage

```js
import {plural, singular} from '@snickbit/plural'

// or in Node.js
// const {plural, singular} = require('@snickbit/plural')

console.log(plural('test')) //=> "tests"
console.log(plural('test', 0)) //=> "tests"
console.log(plural('test', 1)) //=> "test"
console.log(plural('test', 2)) //=> "tests"

// Singularize
console.log(singular('tests')) //=> "test"
console.log(singular('test')) //=> "test"
console.log(singular('test', 0)) //=> "tests"
console.log(singular('test', 2)) //=> "tests"

```

## Documentation

### [API Docs](./docs/README.md)

### [CHANGELOG](CHANGELOG.md)

## Acknowledgements

### Based on [pluralize](https://github.com/plurals/pluralize)

## License

Copyright (c) 2022 - **Nicholas Lowe** aka **Snickbit**

[MIT License](../../LICENSE)

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