get-currency

Get currency symbol for a given currency code

Usage no npm install needed!

<script type="module">
  import getCurrency from 'https://cdn.skypack.dev/get-currency';
</script>

README

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