2.0.0 • Published 9 years ago

adamvr-currency-symbol-map v2.0.0

Weekly downloads
5
License
BSD-2-Clause
Repository
github
Last release
9 years ago

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.

2.0.0

9 years ago