mer
CLI to convert currency.
Usage
Usage: mer <from> <to> [<src>]
Arguments:
<from> Exchange source currency code.
<to> Exchange destination currency code.
[<src>] Exchange source.
Flags:
-h, --help Show help.
-c, --comma Add comma to a number.
--version
$ mer usd jpy 3
427.203
$ echo 1.53 | mer usd eur
1.36185
$ mer usd jpy 3000
21
$ mer usd jpy 3,000 # comma will be deleted
21
$ mer usd jpy 1000
142401
$ mer -c usd jpy 1000
142,401
Installation
brew install winebarrel/mer/mer