1.0.6 • Published 2 years ago

node-librehardwaremonitor v1.0.6

Weekly downloads
-
License
MPL-2.0
Repository
-
Last release
2 years ago

node-librehardwaremonitor

A NodeJS library based on LibreHardwareMonitor for obtaining computer hardware information.

Installing

npm

npm i node-librehardwaremonitor

yarn

yarn add node-librehardwaremonitor

Usage

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.

1.0.6

2 years ago

1.0.5

2 years ago

1.0.4

2 years ago

1.0.3

2 years ago

1.0.2

2 years ago

1.0.1

2 years ago

1.0.0

2 years ago