currency-conjugates
v1.4.0
Published
This library conjugates the words 'ruble', 'kopeck', 'dollar', 'cent' 'euro', 'eurocent', 'yen', 'sen', 'yuan', 'jiao', 'fen'
Downloads
1
Readme
Conjugation of words of currency
Conjugation of words of currency: "ruble", "kopeck", "dollar", "cent" "euro", "eurocent", "yen", "sen", "yuan", "jiao", "fen" in Russian
[!NOTE]
Installation
This package can be installed using npm
npm i currency-conjugates
An example of using the function for rubles and kopecks
let rubleKopeikaResult = rubleKopeika(123.45);
console.log(rubleKopeikaResult);
// Вывод: "123 рубля 45 копеек"
Example of using the dollars and cents function
let dollarCentResult = dollarCent(56.78);
console.log(dollarCentResult);
// Вывод: "56 долларов 78 центов"
An example of using the function for euros and eurocents
let euroEuroCentResult = euroEuroCent(78.99);
console.log(euroEuroCentResult);
// Вывод: "78 евро 99 евроцентов"
Example of using the function for Japanese yen
let yenJapanResult = yenJapan(123.45);
console.log(yenJapanResult);
// Вывод: "123 йены 45 сенов"
Example of using the function for Chinese yuan
let yuanChinaResult = yuanChina(56.78);
console.log(yuanChinaResult);
// Вывод: "56 юаней 7 цзяо 8 фэней"