1.0.6 • Published 2 years ago
node-librehardwaremonitor v1.0.6
node-librehardwaremonitor
A NodeJS library based on LibreHardwareMonitor for obtaining computer hardware information.
Installing
npm
npm i node-librehardwaremonitoryarn
yarn add node-librehardwaremonitorUsage
typescript
import librehardwaremonitor from "node-librehardwaremonitor";
setInterval(async ()=>{
const result = await librehardwaremonitor.getHardwareMessage();
console.log(result);
}, 1000)javascript
const librehardwaremonitor = require("node-librehardwaremonitor");
setInterval(async ()=>{
const result = await librehardwaremonitor.getHardwareMessage();
console.log(result);
}, 1000)API
getHardwareMessage()
Used to obtain information about computer hardware.
setFanSpeed(fanName: string, speed: number)
Used to set the speed of the fan. The value of speed is speedThe percentage of full speed of the fan.