A function to lookup the currency symbol for a given currency code.
npm install currency-map-symbol
npm run test
npm run test:watch
npm run test:coverage
// ES5
const getSymbolFromCurrency = require('currency-map-symbol')
// ES6
import getSymbolFromCurrency from 'currency-map-symbol'
getSymbolFromCurrency('GBP') //=> '£'
getSymbolFromCurrency('EUR') //=> '€'
getSymbolFromCurrency('USD') //=> '$'
getSymbolFromCurrency('NOT A VALID CODE') //=> undefined
// ES5
const getSymbolFromCurrency = require('currency-map-symbol')
// ES6
import getSymbolFromCurrency from 'currency-map-symbol'
/* =>
{
"USD" : "$",
"GBP" : "£",
…
}
*/
Currency symbols originally sourced from xe