New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@depay/local-currency

Package Overview
Dependencies
Maintainers
1
Versions
20
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@depay/local-currency - npm Package Compare versions

Comparing version 3.3.0 to 3.4.0

4

dist/esm/index.js

@@ -463,4 +463,4 @@ var timezoneToCurrency = {

toString() {
return new Intl.NumberFormat(navigator.language, {
toString(options = {}) {
return new Intl.NumberFormat(navigator.language, {...options,
style: 'currency',

@@ -467,0 +467,0 @@ currency: this.code,

@@ -469,4 +469,4 @@ (function (global, factory) {

toString() {
return new Intl.NumberFormat(navigator.language, {
toString(options = {}) {
return new Intl.NumberFormat(navigator.language, {...options,
style: 'currency',

@@ -473,0 +473,0 @@ currency: this.code,

{
"name": "@depay/local-currency",
"moduleName": "LocalCurrency",
"version": "3.3.0",
"version": "3.4.0",
"description": "JavaScript library that detects user's local currency and provides functionalities to convert between multiple currencies.",

@@ -6,0 +6,0 @@ "main": "dist/umd/index.js",

@@ -49,2 +49,9 @@ ## Quickstart

`options`: accepts options object that will be forwarded to `Intl.NumberFormat`
```javascript
new LocalCurrency.Currency({ amount: 20 }).toString({ maximumFractionDigits: 0 })
// $20
```
### fromUSD

@@ -51,0 +58,0 @@

SocketSocket SOC 2 Logo

Product

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

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc