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

format-money-js

Package Overview
Dependencies
Maintainers
1
Versions
38
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

format-money-js - npm Package Compare versions

Comparing version 1.6.0 to 1.6.1

2

from.test.js

@@ -8,2 +8,4 @@ const test = require('tape');

test('FormatMoney(): valid params', (t) => {
t.equal('0', fm1.from(0, {}), 'should return 0');
t.equal('0.00', fm1.from(0, { decimals: 2 }), 'should return 0.00');
t.equal('1', fm1.from(1, {}), 'should return 1');

@@ -10,0 +12,0 @@ t.equal('1,20', fm1.from(1.2, { decimalPoint: ',', decimals: 2 }), 'should return 1,20');

11

package.json
{
"name": "format-money-js",
"description": "Zero dependency tiny JavaScript library (1kB bytes) by CurrencyRate.today, providing simple way and advanced number, money and currency formatting and removes all formatting/cruft and returns the raw float value.",
"version": "1.6.0",
"version": "1.6.1",
"license": "BSD-2-Clause",

@@ -41,2 +41,4 @@ "main": "./dist/format-money.js",

"@types/jest": "^24.0.6",
"@types/node": "^18.11.19",
"@typescript-eslint/eslint-plugin": "^4.6.0",
"babel-core": "^6.26.3",

@@ -54,2 +56,4 @@ "babel-loader": "^7.1.5",

"jest-diff": "^25.1.0",
"tape": "^5.1.1",
"tslint": "^5.11.0",
"tslint-config-airbnb": "^5.11.2",

@@ -59,6 +63,3 @@ "typescript": "^3.8.0-dev.20200125",

"webpack": "^4.41.5",
"webpack-cli": "^3.3.10",
"@typescript-eslint/eslint-plugin": "^4.6.0",
"tslint": "^5.11.0",
"tape": "^5.1.1"
"webpack-cli": "^3.3.10"
},

@@ -65,0 +66,0 @@ "repository": {

/*!
* format-money-js v1.6.0
* format-money-js v1.6.1
* (c) 2020-2023 Yurii Derevych

@@ -12,3 +12,3 @@ * URL: https://github.com/dejurin/format-money-js

export interface FormatMoneyOptions { // (default)
grouping?: boolean; // Example: 1,000 vs 1000 (true)
grouping?: boolean; // Example: 1,000 vs 1000 (true)tsc --version
separator?: string; // Grouping separator (,)

@@ -32,3 +32,3 @@ decimalPoint?: string; // Sets the separator for the decimal point.

export class FormatMoney {
version = '1.6.0';
version = '1.6.1';

@@ -35,0 +35,0 @@ private defaults: FormatMoneyOptions = {

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