npm.io
1.0.3 • Published 4 years ago

declination

Licence
ISC
Version
1.0.3
Deps
0
Size
3 kB
Vulns
0
Weekly
0
DeprecatedThis package is deprecated

declination

npm version

Utility for working with declensions in Node.JS.

All products of ФОЗАН inc. on the site: click here

Table of Contents

Features

  • Ability to declinate words by number.

Installing

Using npm:

$ npm install declination

Example

To connect the library declination, enter the following text:

const declination = require('declination');

Executing number request

const { number } = require('declination');

async function func() {
    const test = await number({
        number: 1,
        first: "Стикеров",
        second: "Стикер",
        third: "Стикера"
    });
    console.log(test);
};
return func();

Resources

License

ISC