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

plyo-tools

Package Overview
Dependencies
Maintainers
3
Versions
21
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

plyo-tools - npm Package Compare versions

Comparing version 1.2.0 to 1.2.1

6

formatNumber.js

@@ -13,7 +13,7 @@ 'use strict';

* Adds space as thousands-separator to number
* @param number Number, int, String
* @returns 2900 -> '2 900'
* @param {*} number
* @returns {string} 2900 -> '2 900'
*/
function formatNumber(number) {
return number.toString().replace(/(\d)(?=(\d{3})+([\D]|$))/g, '$1 ');
return Number(number).toString().replace(/(\d)(?=(\d{3})+([\D]|$))/g, '$1 ');
}
{
"version": "1.2.0",
"version": "1.2.1",
"name": "plyo-tools",

@@ -4,0 +4,0 @@ "repository": "plyo/plyo.tools",

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