Skip to content

Er2pkg/cpuse

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 

Repository files navigation

cpuse

CPU Usage

Usage:

const cpuse = require('cpuse')

//This returns Array with CPUs uses
cpuse.usage(/* you can use here callback */)
.then(/* you can use promise */)

//This returns average value of CPUs usages in string + % sign
cpuse.usageAvg().then(/* also */)

Example:

const cpuse = require('cpuse')

//Average usage
cpuse.usageAvg().then(console.log)
//usages array
cpuse.usage().then(console.log)

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published