node-librehardwaremonitor
TypeScript icon, indicating that this package has built-in type declarations

1.0.6 • Public • Published

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.

/node-librehardwaremonitor/

    Package Sidebar

    Install

    npm i node-librehardwaremonitor

    Weekly Downloads

    1

    Version

    1.0.6

    License

    MPL-2.0

    Unpacked Size

    13 MB

    Total Files

    415

    Last publish

    Collaborators

    • limingxiao725