Skip to content

johnie/get-currency

Repository files navigation

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

About

💸 Get currency symbol for a given currency code

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published