# ruplu

> Russian words plural form helper

Latest version **3.0.1** (published 2019-06-20) · MIT license · 0 weekly downloads

## Install

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

## 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 | 3.0.1 |
| Published | 2019-06-20 |
| First published | 2016-02-18 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 6 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 4 |
| Maintainers | skarankevich |
| Keywords | russian, words, plural, form, helper, format, output |

## Links

- npm: https://www.npmjs.com/package/ruplu
- Repository: https://github.com/skarankevich/ruplu
- Homepage: https://github.com/skarankevich/ruplu#readme
- Issues: https://github.com/skarankevich/ruplu/issues
- npm.io page: https://npm.io/package/ruplu

## Alternatives

- [mobx-react](https://npm.io/package/mobx-react.md) — 2.8M weekly downloads
- [rc-tree](https://npm.io/package/rc-tree.md) — 2.6M weekly downloads
- [@react-oauth/google](https://npm.io/package/@react-oauth/google.md) — 1.3M weekly downloads
- [@wagmi/connectors](https://npm.io/package/@wagmi/connectors.md) — 877.0K weekly downloads
- [vee-validate](https://npm.io/package/vee-validate.md) — 836.4K weekly downloads

## Recent versions

- 3.0.1 (latest) — 2019-06-20
- 3.0.0 — 2019-06-20
- 2.0.1 — 2017-07-07
- 2.0.0 — 2016-05-18
- 1.0.4 — 2016-04-22
- 1.0.3 — 2016-03-30
- 1.0.2 — 2016-02-18
- 1.0.1 — 2016-02-18
- 1.0.0 — 2016-02-18

## README

# RuPlu

**Russian words plural form helper**

**Склонение множественного числа существительных**

[![Build Status](https://travis-ci.org/skarankevich/ruplu.svg?branch=master)](https://travis-ci.org/skarankevich/ruplu)
[![Known Vulnerabilities](https://snyk.io/test/github/skarankevich/ruplu/badge.svg?targetFile=package.json)](https://snyk.io/test/github/skarankevich/ruplu?targetFile=package.json)

[![NPM](https://nodei.co/npm/ruplu.png?downloads)](https://nodei.co/npm/ruplu/)

## Install
```bash
$ npm install ruplu --save
```

## Usage
```js
const ruplu = require('ruplu');
// OR
import ruplu from 'ruplu';

const cats = ruplu([
  'кошка',  // 1 кошка
  'кошки',  // 2 кошки
  'кошек'   // 5 кошек
]);
```

### Just word
```js
cats(1);  // => 'кошка'
cats(3);  // => 'кошки'
cats(6);  // => 'кошек'
```

### Word with count
```js
cats(1, true);  // => '1 кошка'
cats(3, true);  // => '3 кошки'
cats(6, true);  // => '6 кошек'
```

### Word with count and custom delimiter
```js
cats(1, true, '&nbsp;');  // => '1&nbsp;кошка'
cats(3, true, '_');       // => '3_кошки'
cats(6, true, '*');       // => '6*кошек'
```

## Testing
```bash
$ npm install && npm test
```

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