Socket
Socket
Sign inDemoInstall

currency-symbol-map

Package Overview
Dependencies
0
Maintainers
1
Versions
20
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 4.0.0 to 4.0.1

2

map.js

@@ -46,2 +46,3 @@ module.exports = {

'ETB': 'Br',
'ETH': 'Ξ',
'EUR': '€',

@@ -88,2 +89,3 @@ 'FJD': '$',

'LSL': 'M',
'LTC': 'Ł',
'LTL': 'Lt',

@@ -90,0 +92,0 @@ 'LVL': 'Ls',

2

package.json
{
"name": "currency-symbol-map",
"version": "4.0.0",
"version": "4.0.1",
"description": "A function to lookup the currency symbol for a given currency code",

@@ -5,0 +5,0 @@ "main": "currency-symbol-map.js",

@@ -13,3 +13,8 @@ # currency-symbol-map

```js
// ES5
const getSymbolFromCurrency = require('currency-symbol-map')
// ES6
import getSymbolFromCurrency from 'currency-symbol-map'
getSymbolFromCurrency('GBP') //=> '£'

@@ -23,3 +28,8 @@ getSymbolFromCurrency('EUR') //=> '€'

```js
const currencySymbolMap = require('currency-symbol-map/map')
// ES5
const getSymbolFromCurrency = require('currency-symbol-map')
// ES6
import getSymbolFromCurrency from 'currency-symbol-map'
// =>

@@ -26,0 +36,0 @@ {

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc