currency-map-symbol
A function to lookup the currency symbol for a given currency code.
Installation
npm install currency-map-symbol
Test
Simple test
npm run test
Test with watch
npm run test:watch
Test coverage
npm run test:coverage
Usage
Get symbol from currency code
// ES5const getSymbolFromCurrency = // ES6 //=> '£' //=> '€' //=> '$' //=> undefined
Exposed map for other processing
// ES5const getSymbolFromCurrency = // ES6 /* =>{ "USD" : "$", "GBP" : "£", …}*/
Credits
Currency symbols originally sourced from xe