update-exchange-rates

0.0.1 • Public • Published

This is a little tool to update the currency exchange rates using the open source exchange rates service found at http://josscrowcroft.github.com/open-exchange-rates/.

#Usage

npm install
chmod +x bin/update_rates
bin/update_rates rates.json

This will drop the conversion rates into rates.json

#Specifying currency codes

##Via the cmd line To specify the currencies to convert from the cmd line, use the -c parameter

bin/update_rates -c USD,CAD,EUR rates.json

##Via a file To specify the currencies to convert from a file, use the -f parameter

bin/update_rates -f currencies.json rates.json

where currencies.json is either an array of currency codes

["USD", "CAD", "EUR"]

or an object with currency codes as keys

{"USD": "$", "CAD": "$", "EUR": "€"}

Readme

Keywords

none

Package Sidebar

Install

npm i update-exchange-rates

Weekly Downloads

1

Version

0.0.1

License

none

Last publish

Collaborators

  • perropicante