
Research
/Security News
Chrome and Firefox Extensions Posing as Free VPNs Add Clipboard Stealers via Malicious Updates
Malicious Chrome and Firefox extensions posed as free VPNs while stealing clipboard data through later extension updates.
nodejs-inspector
Advanced tools
Inspector for Node.js process & worker_threads
Inspector is a wrapper for Node.js inspector module, but with promiseify API.
const { Inspector } = require('nodejs-inspector');
const inspector = new Inspector();
inspector.start();
inspector.on('HeapProfiler.addHeapSnapshotChunk', (m) => {
//
});
await inspector.post('HeapProfiler.takeHeapSnapshot');
inspector.stop();
const { Inspector, util } = require('nodejs-inspector');
const inspector = new Inspector();
inspector.start();
await inspector.post('Profiler.enable');
await inspector.post('Profiler.setSamplingInterval', { interval: 1000 });
await inspector.post('Profiler.start');
await util.sleep(1000);
const { profile } = await inspector.post('Profiler.stop');
await inspector.post('Profiler.disable');
inspector.stop();
Thread Inspector is a Inspector communicate with the worker_thread.
const { ThreadInspector } = require('nodejs-inspector');
const { Worker } = require('worker_threads');
const worker = new Worker('setInterval(() => {}, 10000)', { eval: true });
const inspector = new ThreadInspector();
inspector.on('attachedToWorker', async (sessionContext) => {
const { sessionId } = sessionContext.getWorkerInfo();
sessionContext.on('HeapProfiler.addHeapSnapshotChunk', (m) => {
//
});
await inspector.postToWorker(sessionId, { method: 'HeapProfiler.takeHeapSnapshot' });
await inspector.stop();
worker.terminate();
});
inspector.start();
const { Worker } = require('worker_threads');
const { ThreadInspector, util } = require('nodejs-inspector');
const worker = new Worker('setInterval(() => {}, 10000)', { eval: true });
const inspector = new ThreadInspector();
inspector.on('attachedToWorker', async (sessionContext) => {
const { sessionId } = sessionContext.getWorkerInfo();
await inspector.postToWorker(sessionId, { method: 'Profiler.enable' });
await inspector.postToWorker(sessionId, {
method: 'Profiler.setSamplingInterval',
params: { interval: 1000 }
});
await inspector.postToWorker(sessionId, { method: 'Profiler.start' });
await util.sleep(1000);
const { profile } = await inspector.postToWorker(sessionId, { method: 'Profiler.stop' });
await inspector.postToWorker(sessionId, { method: 'Profiler.disable' });
await inspector.stop();
worker.terminate();
});
inspector.start();
post(method, params)
Communicate with Node.js by inspector protocol.start
Start the Inspector before using other API.stop
Stop the Inspector If it is no longer needed.post(method, params)
Communicate with Node.js by inspector protocol.postToWorker(sessionId, message)
Communicate with Node.js worker_threads by inspector protocol.start
Start the Inspector before using other API.stop
Stop the Inspector If it is no longer needed.getSessions
Get worker sessions.See more informations in https://chromedevtools.github.io/devtools-protocol/v8/ .
FAQs
inspector for Node.js
The npm package nodejs-inspector receives a total of 16 weekly downloads. As such, nodejs-inspector popularity was classified as not popular.
We found that nodejs-inspector 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
/Security News
Malicious Chrome and Firefox extensions posed as free VPNs while stealing clipboard data through later extension updates.

Research
/Security News
Miasma Mini Shai-Hulud hits @immobiliarelabs Backstage plugins, targeting GitLab and LDAP auth packages on npm.

Security News
Rolldown paused Rust React Compiler integration after a 5MB binary size increase raised concerns about shipping React-specific code to all Vite users.