Socket
Socket
Sign inDemoInstall

cnd

Package Overview
Dependencies
Maintainers
1
Versions
62
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

cnd - npm Package Compare versions

Comparing version 9.2.1 to 9.2.2

pnpm-lock.yaml

14

lib/BITSNPIECES.js
(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

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