Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

cpu

dayuoba605MIT1.0.1

cpu module based on 'os' module

CPUUsage

readme

cpu

Install

npm install cpu

Usage

var cpu=reuqire('cpu');

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

cpu.usage(function(arr));// use callback to handle the CPUUsage Array