with the module you can get the CPU and memory information:
const os = require('os');
console.log(os.cpus());
console.log(os.totalmem());
console.log(os.freemem())
The Module os-utils is also interesting, works more or less the same way:
const os = require('os-utils');
os.cpuUsage(function(v){
console.log( 'CPU Usage (%): ' + v );
});
Disk usage information you can use the diskspace:
const diskspace = require('diskspace');
diskspace.check('C', function (err, result) {
console.log(JSON.stringify(result))
});