get-currency

0.0.3 • Public • Published

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

Package Sidebar

Install

npm i get-currency

Weekly Downloads

0

Version

0.0.3

License

MIT

Last publish

Collaborators

  • johnie