currency-conjugates

1.4.0 • Public • Published

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 фэней"

Example

https://github.com/AlexPror/node_js/tree/main/npm-test

Dependencies (0)

    Dev Dependencies (0)

      Package Sidebar

      Install

      npm i currency-conjugates

      Weekly Downloads

      2

      Version

      1.4.0

      License

      ISC

      Unpacked Size

      5.9 kB

      Total Files

      3

      Last publish

      Collaborators

      • alexpror