New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details
Socket
Book a DemoSign in
Socket

cpusage

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

cpusage

CPU Sage provides an API for understanding a node processes memory usage from within that process.

latest
npmnpm
Version
0.0.1
Version published
Weekly downloads
4
33.33%
Maintainers
1
Weekly downloads
 
Created
Source

Your CPU Sage

installation

npm install cpusage

usage

var cpuSage = require('cpusage');
cpuSage.on('stats', function(stats) {
  console.log(stats);
}).on('busy', function(percentCPU) {
  console.log("process is overloaded, using " + percentCPU + "% cpu\n");
}).on('normal', function(percentCPU) {
 console.log("process is back to normal, using " + percentCPU + "% cpu\n");
});

license

http://wtfpl.org

FAQs

Package last updated on 15 Nov 2012

Did you know?

Socket

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.

Install

Related posts