currency-map-symbol
A function to lookup the currency symbol for a given currency code.
Installation
npm install currency-map-symbol
Usage
Get symbol from currency code
const getSymbolFromCurrency = require('currency-map-symbol')
import getSymbolFromCurrency from 'currency-map-symbol'
getSymbolFromCurrency('GBP')
getSymbolFromCurrency('EUR')
getSymbolFromCurrency('USD')
getSymbolFromCurrency('NOT A VALID CODE')
Exposed map for other processing
const getSymbolFromCurrency = require('currency-map-symbol')
import getSymbolFromCurrency from 'currency-map-symbol'
Tests
npm test
Credits
Currency symbols originally sourced from xe