Skip to content

Latest commit

 

History

History
27 lines (17 loc) · 466 Bytes

README.md

File metadata and controls

27 lines (17 loc) · 466 Bytes

cpu

NPM

Status

Build Status

Install

npm install cpu

Usage

var cpu = require('cpu');

var num = cpu.num();//return CPU's nums

cpu.usage(function(usages) {
  console.log(usages);
});// use callback to handle the CPUUsage Array