
Security News
Deno 2.6 + Socket: Supply Chain Defense In Your CLI
Deno 2.6 introduces deno audit with a new --socket flag that plugs directly into Socket to bring supply chain security checks into the Deno CLI.
process-monitor
Advanced tools
Monitors the CPU and memory usage for a PID or collection of PIDs.
(note: this module is not currently available in the npm registry)
Install the module:
npm install git://github.com/onmodulus/process-monitor.git#develop
Use it in your script:
var procmon = require('process-monitor');
Monitor a single PID or mulitple PIDs:
// Single PID
var single = procmon.monitor({ pid: 1, interval: 5000 }).start();
// Multiple PIDs
var multi = procmon.monitor({ pid: [1, 2, 3] }).start();
Handle the stats response - a response will emitted for each of the specified PIDs and includes the PID:
single.on('stats', function(stats) {
console.dir(stats); // Outputs: { pid: 1, cpu: '0.0', mem: '2248' }
})
Note: if a PID is not found, the resulting cpu and mem properties will be an empty string.
Generated code documentation is available in the docs directory. This documentation is generated using
docco-husky - to regenerate the documentation, run $ docco-husky lib/*.
Currently the monitor function accepts the following configuration options:
pid - Either a PID number or an array of PID numbersinterval - Rate in milliseconds at which the processes are checked and the stats event is emitted (defaults to 1000 ms)Copyright (c) 2012 Modulus Licensed under the MIT license.
FAQs
Monitors the CPU and memory usage for a PID or collection of PIDs.
The npm package process-monitor receives a total of 0 weekly downloads. As such, process-monitor popularity was classified as not popular.
We found that process-monitor 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
Deno 2.6 introduces deno audit with a new --socket flag that plugs directly into Socket to bring supply chain security checks into the Deno CLI.

Security News
New DoS and source code exposure bugs in React Server Components and Next.js: what’s affected and how to update safely.

Security News
Socket CEO Feross Aboukhadijeh joins Software Engineering Daily to discuss modern software supply chain attacks and rising AI-driven security risks.