
Security News
Attackers Are Hunting High-Impact Node.js Maintainers in a Coordinated Social Engineering Campaign
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.
REPL add-on for debugging and benchmarking Node applications.
npm install --save node-peek
Once installed, require node-peek on your main server file and run node {SERVER_FILE} --repl.
DISCLAIMER:
node-peekcreates a small Unix socket server on your running process to allow you to connect and debug live, as well as run and alter functions you choose to expose. Because this uses extra resources and could potentially be a security risk, allnode-peekmethods will default to noop and the socket server will not start without the--replflag.
You can then use peek() to expose variables to the REPL if it's running.
const peek = require('node-peek');
/* Make variables accessible to REPL. */
peek('key', value);
peek({
anotherKey: anotherValue
});
/* Console log to all REPLs */
peek.log(obj1, obj2);
/* Close REPL */
peek.close();
/* Change REPL prompt prefix. */
// Before: $ repl >
peek.setPrompt('my-own-repl');
// After: $ my-own-repl >
/* Define custom REPL commands, identical to built-in REPL API. */
peek.defineCommand('savestate', () => {
fs.writeFile('/tmp/statefile.json', JSON.stringify(state), () => {
this.outputStream.write('State saved!');
});
});
$ ./node_modules/.bin/repl
Use like the normal Node REPL with additional helpers and custom commands.
$ repl > 2 + 2
$ 4
$
$ repl > .hdump
$ Heapdump written to /tmp/heap.1485844418719.heapsnapshot
FAQs
REPL add-on for debugging and benchmarking Node applications.
We found that node-peek 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
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.

Security News
Axios compromise traced to social engineering, showing how attacks on maintainers can bypass controls and expose the broader software supply chain.

Security News
Node.js has paused its bug bounty program after funding ended, removing payouts for vulnerability reports but keeping its security process unchanged.