A function to lookup the currency symbol for a given currency code
npm install currency-map-symbolA function to lookup the currency symbol for a given currency code.
npm install currency-map-symbol
#### Simple test
npm run test
#### Test with watch
npm run test:watch
#### Test coverage
npm run test:coverage
js
// 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
`$3
`js
// ES5
const getSymbolFromCurrency = require('currency-map-symbol')// ES6
import getSymbolFromCurrency from 'currency-map-symbol'
/* =>
{
"USD" : "$",
"GBP" : "£",
…
}
*/
``Currency symbols originally sourced from xe