0.0.3 • Published 9 years ago
get-currency v0.0.3
get-currency
Get currency symbol for a given currency code
Useful for when displaying $ instead of USD
-
Install
$ npm install --save get-currency
$ bower install --save get-currency
Usage
getCurrency('USD');
//=> '$'
getCurrency('SEK');
//=> 'kr'
CLI
$ npm install --global get-currency
$ get-currency --help
Usage
get-currency <abbreviation>
echo <abbreviation> | get-currency
Example
get-currency USD
$
License
MIT © Johnie Hjelm