# sorp

> Returns a singular or plural form depending on a given number.

Latest version **1.0.0** (published 2018-01-31) · MIT license · 0 weekly downloads

## Install

```sh
npm install sorp
pnpm add sorp
yarn add sorp
bun add sorp
```

## Health

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

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.0 |
| Published | 2018-01-31 |
| First published | 2018-01-31 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Node | >=4.0.0 |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | John Lamansky |
| Maintainers | lamansky |
| Keywords | singular, plural, string, number |

## Links

- npm: https://www.npmjs.com/package/sorp
- Repository: https://github.com/lamansky/sorp
- Issues: https://github.com/lamansky/sorp/issues
- npm.io page: https://npm.io/package/sorp

## Alternatives

- [random-seedable](https://npm.io/package/random-seedable.md) — 27.9K weekly downloads
- [n2words](https://npm.io/package/n2words.md) — 22.2K weekly downloads
- [@stdlib/math-base-special-factorialln](https://npm.io/package/@stdlib/math-base-special-factorialln.md) — 5.7K weekly downloads
- [@stdlib/math-base-special-abs2](https://npm.io/package/@stdlib/math-base-special-abs2.md) — 1.7K weekly downloads
- [commons-math-interpolation](https://npm.io/package/commons-math-interpolation.md) — 1.4K weekly downloads

## Recent versions

- 1.0.0 (latest) — 2018-01-31

## README

# sorp

Returns a singular or plural form depending on a given number.

Does not generate plural forms for you. There are plenty of other modules that do that. This module omits that overhead deliberately.

## Installation

Requires [Node.js](https://nodejs.org/) 4.0.0 or above.

```bash
npm i sorp
```

The module exports a single function.

## Usage Example

```javascript
const sorp = require('sorp')

sorp(0, 'thing', 'things') // 'things'
sorp(1, 'thing', 'things') // 'thing'
sorp(2, 'thing', 'things') // 'things'
```

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