Socket
Socket
Sign inDemoInstall

currency-conjugates

Package Overview
Dependencies
0
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    currency-conjugates

This library conjugates the words 'ruble', 'kopeck', 'dollar', 'cent' 'euro', 'eurocent', 'yen', 'sen', 'yuan', 'jiao', 'fen'


Version published
Weekly downloads
0
decreased by-100%
Maintainers
1
Created
Weekly downloads
 

Readme

Source

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

FAQs

Last updated on 22 Mar 2024

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc