plyo-tools
Advanced tools
Comparing version 1.2.0 to 1.2.1
@@ -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", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
5367
131
2