1.0.0 • Published 4 years ago

currency-convert-rj v1.0.0

Weekly downloads
-
License
ISC
Repository
-
Last release
4 years ago

What is this?

A currency converter that lets you easily convert any amount from one currency to another.

Installation

Run

npm i currency-convert-rj

Use:

import converter from 'currency-convert-rj';

converter('USD', 'INR', 1);

Parameters

The currency converter accepts 3 parameters :

  • currency1 : the currency to convert from
  • currency2 : the currency to convert to
  • value : the amount to be converted

Available currencies

"AUD":"Australian Dollar","BGN":"Bulgarian Lev","BRL":"Brazilian Real","CAD":"Canadian Dollar","CHF":"Swiss Franc","CNY":"Chinese Renminbi Yuan","CZK":"Czech Koruna","DKK":"Danish Krone","EUR":"Euro","GBP":"British Pound","HKD":"Hong Kong Dollar","HRK":"Croatian Kuna","HUF":"Hungarian Forint","IDR":"Indonesian Rupiah","ILS":"Israeli New Sheqel","INR":"Indian Rupee","ISK":"Icelandic Króna","JPY":"Japanese Yen","KRW":"South Korean Won","MXN":"Mexican Peso","MYR":"Malaysian Ringgit","NOK":"Norwegian Krone","NZD":"New Zealand Dollar","PHP":"Philippine Peso","PLN":"Polish Złoty","RON":"Romanian Leu","RUB":"Russian Ruble","SEK":"Swedish Krona","SGD":"Singapore Dollar","THB":"Thai Baht","TRY":"Turkish Lira","USD":"United States Dollar","ZAR":"South African Rand"