0.0.3 • Published 9 years ago

get-currency v0.0.3

Weekly downloads
2
License
MIT
Repository
github
Last release
9 years ago

get-currency Build Status

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