adamvr-currency-symbol-map
v2.0.0
Published
A function to lookup the currency symbol for a given currency code
Downloads
8
Readme
currency-symbol-map
A function to lookup the currency symbol for a given currency code
Installation
npm install currency-symbol-map
Usage
var getSymbol = require('currency-symbol-map')
getSymbol('GBP') //=> '£'
getSymbol('EUR') //=> '€'
getSymbol('USD') //=> '$'
getSymbol('NOT A VALID CODE') //=> '?'
Currency symbols sourced from from xe.