
Research
SANDWORM_MODE: Shai-Hulud-Style npm Worm Hijacks CI Workflows and Poisons AI Toolchains
An emerging npm supply chain attack that infects repos, steals CI secrets, and targets developer AI toolchains for further compromise.
console-spy
Advanced tools
a little module for listening in on calls made to the global console object
** No badge to prove it, but this module is designed to work in all browsers; even IE 6 and friends! **
$ npm install console-spy
var spy = require('console-spy')()
spy.on('log', function () {
// expected: ["First message"]
// expected: ["Third message"]
})
spy.on('warn', function () {
// expected: ["On no!", 123]
})
// note: passing a truthy value to enable
// will prevent calls from being passed
// through to the _real_ console
spy.enable()
console.log('First message')
// spy can be disabled
spy.disable()
console.log('Second message')
// and re-enabled
spy.enable()
console.log('Third message')
// and all the console methods
// can be spied upon
console.warn('Oh no!', 123)
FAQs
listen in on calls to the global `console` object
We found that console-spy 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.

Research
An emerging npm supply chain attack that infects repos, steals CI secrets, and targets developer AI toolchains for further compromise.

Company News
Socket is proud to join the OpenJS Foundation as a Silver Member, deepening our commitment to the long-term health and security of the JavaScript ecosystem.

Security News
npm now links to Socket's security analysis on every package page. Here's what you'll find when you click through.