Command-line tool for converting currencies using Open Exchange Rates.
npm install -g curconExport your Open Exchange Rates App ID in your startup file (~/.bashrc, ~/.bash_profile, etc).
export OPEN_EXCHANGE_RATES_APP_ID=...
Remember to source your startup file (
source ~/.bashrc) or restart your terminal.
Convert 100 Canadian dollars to Japanese Yen:
# curcon amount from to round-to
curcon 100 cad jpy 2
amount: NumberThe amount to convert. Defaults to 1.from: StringAny valid currency code such as CAD. Defaults to CAD.to: StringAny valid currency code such as JPY. Defaults to JPY.round-to: NumberThe number of decimal places to round to. Defaults to 2.
MIT