currency-map-symbol
Advanced tools
Comparing version 3.1.3 to 3.1.4
{ | ||
"name": "currency-map-symbol", | ||
"version": "3.1.3", | ||
"version": "3.1.4", | ||
"description": "A function to lookup the currency symbol for a given currency code", | ||
@@ -22,3 +22,3 @@ "main": "currency-map-symbol.js", | ||
"author": "Zak Zubair", | ||
"license": "BSD-2-Clause", | ||
"license": "MIT", | ||
"bugs": { | ||
@@ -25,0 +25,0 @@ "url": "https://github.com/ZakZubair/currency-map-symbol/issues" |
@@ -7,3 +7,3 @@ # currency-map-symbol | ||
npm install currency-map-symbol | ||
npm i currency-map-symbol --save | ||
@@ -61,2 +61,9 @@ ## Usage | ||
## ES6 usage | ||
```js | ||
import {getSymbolFromCurrency} from 'currency-map-symbol'; | ||
getSymbolFromCurrency('GBP'); //=> '£' | ||
``` | ||
## Tests | ||
@@ -69,2 +76,2 @@ ```bash | ||
Currency symbols originally sourced from [xe](http://www.xe.com/symbols.php | ||
Currency symbols originally sourced from [xe](http://www.xe.com/symbols.php) |
Sorry, the diff of this file is not supported yet
75
12216