lizard-utils
v1.2.1
Published
Monitor operating system related data.
Downloads
12
Maintainers
Readme
Lizard Utils
Utilities to monitor operating system related data.
Installation
npm install lizard-utils --save
Example
const lizardUtils = require('lizardUtils');
const coreCount = lizardUtils.cpu.coreCount(); // 12
lizardUtils.cpu.avgLoads(1000).then((data) => {
console.log(data.avgLoadPercent); // 25.8
});
lizardUtils.cpu.subscribe(1000, (data) => {
console.log(data.avgLoadPercent); // 25.8
});