Currencies
A simple library for currency symbols, names, and exchange rates.
Usage
var currencies = ;
Initially you have just a map of currency names and symbols, which you can get
or set
:
currenciesrate === 1currenciessymbol === '€';currenciesname === 'Polish Zloty';
get
Without an argument, returns the complete currencies map
currenciescurrencies;
set
Set a currency's rate (USD-relative) yourself
currencies; currencies;
update
Calling this function will update the internal currencies map with current exchange rate, using data from European Central Bank.
currencies;
License
MIT