Socket
Socket
Sign inDemoInstall

currency-formatter

Package Overview
Dependencies
Maintainers
1
Versions
40
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

currency-formatter - npm Package Compare versions

Comparing version 0.0.2 to 0.0.3

4

index.js

@@ -16,3 +16,3 @@ var data = require('./data');

CurrencyFormatter.prototype.format = function (value, options) {
var currency = data.find(c => c.code === options.code) || this.defaultCurrency;
var currency = data.find(function(c) { return c.code === options.code; }) || this.defaultCurrency;

@@ -43,5 +43,5 @@ var symbolOnLeft = currency.symbolOnLeft;

CurrencyFormatter.prototype.findCurrency = function (currencyCode) {
return data.find(c => c.code === currencyCode);
return data.find(function(c) { return c.code === currencyCode; });
}
module.exports = new CurrencyFormatter();
{
"name": "currency-formatter",
"version": "0.0.2",
"version": "0.0.3",
"description": "A simple Javascript utility that helps you to display currency properly",

@@ -5,0 +5,0 @@ "main": "index.js",

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