Comparing version 9.2.1 to 9.2.2
(function() { | ||
//########################################################################################################### | ||
var CND, PATH, njs_fs, njs_path, njs_util, number_formatter, rpr; | ||
var CND, NumberFormat, PATH, njs_fs, njs_path, njs_util, rpr; | ||
@@ -17,2 +17,4 @@ njs_path = require('path'); | ||
({NumberFormat} = require('jsx-number-format')); | ||
this.flatten = function(x, depth = 2e308) { | ||
@@ -46,6 +48,8 @@ return x.flat(depth); | ||
//----------------------------------------------------------------------------------------------------------- | ||
number_formatter = new Intl.NumberFormat('en-US'); | ||
this.format_number = function(x) { | ||
return number_formatter.format(x); | ||
// number_formatter = new Intl.NumberFormat 'en-US' | ||
// @format_number = ( x ) -> number_formatter.format x | ||
this.format_number = function(n) { | ||
var R; | ||
R = NumberFormat(n, 3); | ||
return R.replace(/\.000/, ''); | ||
}; | ||
@@ -52,0 +56,0 @@ |
{ | ||
"name": "cnd", | ||
"version": "9.2.1", | ||
"version": "9.2.2", | ||
"description": "a grab-bag NodeJS package mainly for functionalities that used to live in coffeenode-trm, coffeenode-bitsnpieces, and coffeenode-types", | ||
@@ -28,3 +28,6 @@ "main": "lib/main.js", | ||
}, | ||
"homepage": "https://github.com/loveencounterflow/cnd" | ||
"homepage": "https://github.com/loveencounterflow/cnd", | ||
"dependencies": { | ||
"jsx-number-format": "^0.1.4" | ||
} | ||
} |
@@ -456,2 +456,4 @@ <!-- START doctoc generated TOC please keep comment here to allow auto update --> | ||
* [ ] use together with [`node-icecream`](https://github.com/jmerle/node-icecream): `ic = ( require | ||
'node-icecream' ) { prefix: '', outputFunction: debug, }` | ||
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
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
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
273058
34
2153
459
1
+ Addedjsx-number-format@^0.1.4
+ Addedjsx-number-format@0.1.5(transitive)