
Security News
The Hidden Blast Radius of the Axios Compromise
The Axios compromise shows how time-dependent dependency resolution makes exposure harder to detect and contain.
woodchopper
Advanced tools
Selective logging based on command line arguments and keys.
Written in CoffeeScript, usable in JavaScript.
Usable with all the console methods,
as seen in this list from Mozilla.
$ npm install woodchopper
Run your node program in the command line with the --print or -p flag and the keys you want to print:
$ node program.js --print important secure
Then in your code give your print statements their keys:
var chop = require('woodchopper');
chop.log(['important', 'superfluous'], 'This is the first print message');
chop.log(['superfluous', 'detail'], 'This is the second print message');
chop.log(['detail', 'secure'], 'This is the third print message');
This would result in the following messages being printed:
'This is the first print message'
'This is the third print message'
Running the program like this:
$ node program.js --print detail
Will result in:
'This is the second print message'
'This is the third print message'
If you give a print statement only one key you do not need to put it in an array:
chop.log('superfluous', 'This is the fourth print message');
FAQs
Selective logging based on command line arguments.
The npm package woodchopper receives a total of 1 weekly downloads. As such, woodchopper popularity was classified as not popular.
We found that woodchopper 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.

Security News
The Axios compromise shows how time-dependent dependency resolution makes exposure harder to detect and contain.

Research
A supply chain attack on Axios introduced a malicious dependency, plain-crypto-js@4.2.1, published minutes earlier and absent from the project’s GitHub releases.

Research
Malicious versions of the Telnyx Python SDK on PyPI delivered credential-stealing malware via a multi-stage supply chain attack.