
Product
Announcing Socket Fix 2.0
Socket Fix 2.0 brings targeted CVE remediation, smarter upgrade planning, and broader ecosystem support to help developers get to zero alerts.
node-debug-tool
Advanced tools
Tiny node.js debugging tool with colors and timing functionality
$ npm install node-debug-tool
The DEBUG_MODE
environment variable, must be set to a namespace in order to see the debugging information.
Code example:
var ab = require('../lib/node-debug-tool')('Foo:bar:x');
var abc = require('../lib/node-debug-tool')('foo:bar:y');
var abcd = require('../lib/node-debug-tool')('foo:abc');
var abcde = require('../lib/node-debug-tool')('other');
ab.log('Some foo bar x');
abc.log('Some foo bar y');
abcd.log('Some foo abc');
other.log('Some other');
The code above possible outputs:
DEBUG_MODE=*
: [Foo:Bar:X] [Debug] "Some foo bar x" +0ms
[Foo:Bar:Y] [Debug] "Some foo bar y" +0ms
[Foo:Abc] [Debug] "Some foo abc" +0ms
[Other] [Debug] "Some other" +0ms
DEBUG_MODE=foo:*
: [Foo:Bar:X] [Debug] "Some foo bar x" +0ms
[Foo:Bar:Y] [Debug] "Some foo bar y" +0ms
[Foo:Abc] [Debug] "Some foo abc" +0ms
DEBUG_MODE=foo:bar:*
: [Foo:Bar:X] [Debug] "Some foo bar x" +0ms
[Foo:Bar:Y] [Debug] "Some foo bar y" +0ms
DEBUG_MODE=foo:bar:x
: [Foo:Bar:X] [Debug] "Some foo bar x" +0ms
FAQs
Node debug tool
We found that node-debug-tool demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Product
Socket Fix 2.0 brings targeted CVE remediation, smarter upgrade planning, and broader ecosystem support to help developers get to zero alerts.
Security News
Socket CEO Feross Aboukhadijeh joins Risky Business Weekly to unpack recent npm phishing attacks, their limited impact, and the risks if attackers get smarter.
Product
Socket’s new Tier 1 Reachability filters out up to 80% of irrelevant CVEs, so security teams can focus on the vulnerabilities that matter.