Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@nlo/currency-formatter

Package Overview
Dependencies
Maintainers
6
Versions
46
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@nlo/currency-formatter - npm Package Compare versions

Comparing version 0.0.1-alpha.82 to 0.0.1-alpha.84

1

dist/currency-formatter.d.ts
declare class CurrencyFormatter {
formatCents(inputCents: number | string, allowNegative?: boolean): string | undefined;
formatCentsRounded(cents: number | string, allowNegative?: boolean): string | undefined;
formatCentsForText(cents: number | string, allowNegative?: boolean): string | undefined;
formatEuroToCents(euro: string): number | undefined;

@@ -5,0 +6,0 @@ private isUnsafeInteger;

@@ -53,2 +53,6 @@ "use strict";

};
CurrencyFormatter.prototype.formatCentsForText = function (cents, allowNegative) {
var money = this.formatCents(cents, allowNegative);
return money ? money.replace(',00', ',-') : money;
};
CurrencyFormatter.prototype.formatEuroToCents = function (euro) {

@@ -55,0 +59,0 @@ var moneyStr = euro.replace(/\./g, '').replace(/,/g, '.');

import currencyFormatter from './currency-formatter';
export default currencyFormatter;

@@ -0,0 +0,0 @@ "use strict";

4

package.json
{
"name": "@nlo/currency-formatter",
"version": "0.0.1-alpha.82+d957b39",
"version": "0.0.1-alpha.84+4afcc9b",
"description": "",

@@ -23,3 +23,3 @@ "main": "dist/index.js",

},
"gitHead": "d957b39fa509ea2e5dd89eba787eb50da57646e0"
"gitHead": "4afcc9b493bf488d41983d4cc214d53e327e79f4"
}
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