
Company News
/Security News
Socket Selected for OpenAI's Cybersecurity Grant Program
Socket is an initial recipient of OpenAI's Cybersecurity Grant Program, which commits $10M in API credits to defenders securing open source software.
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.
The npm package node-peek receives a total of 17 weekly downloads. As such, node-peek popularity was classified as not popular.
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.

Company News
/Security News
Socket is an initial recipient of OpenAI's Cybersecurity Grant Program, which commits $10M in API credits to defenders securing open source software.

Security News
Socket CEO Feross Aboukhadijeh joins 10 Minutes or Less, a podcast by Ali Rohde, to discuss the recent surge in open source supply chain attacks.

Research
/Security News
Campaign of 108 extensions harvests identities, steals sessions, and adds backdoors to browsers, all tied to the same C2 infrastructure.