Skip to content

Latest commit

 

History

History
24 lines (13 loc) · 653 Bytes

README.md

File metadata and controls

24 lines (13 loc) · 653 Bytes

rusn

ci Coverage Status

Small library without deps for getting russian text with singular and plural forms

Installation

npm install rusn

Usage

import { rusPluralize } from "rusn";

const appleForms = ["яблоко", "яблока", "яблок"];

console.log(rusPluralize(1, appleForms)); // яблоко

console.log(rusPluralize(10, appleForms)); // яблок