1.2.0 • Published 6 years ago
smc-node-kit v1.2.0
smc-node-kit
Library to easily communicate with the Apple SMC through Node.js
Installation
npm install smc-node-kitor
yarn add smc-node-kitDocumentation
You can find the documentation here.
Usage
This little code snipped shows how to read the current CPU temperature:
// import the class
const { SMCNodeKit } = require('smc-node-kit');
// create a new instance of the class and open the connection to the SMC
const smcKit = new SMCNodeKit();
smcKit.open();
// read the cpu temperature
console.log(smcKit.getCpuTemp());
// close the connection to the SMC
smcKit.close();If you are using typescript you can use named imports:
// import the class
import { SMCNodeKit } from 'smc-node-kit';
// create a new instance of the class and open the connection to the SMC
const smcKit: SMCNodeKit = new SMCNodeKit();
smcKit.open();
// read the cpu temperature
console.log(smcKit.getCpuTemp());
// close the connection to the SMC
smcKit.close();1.2.0
6 years ago
1.1.0
6 years ago
1.0.11
7 years ago
1.0.10
7 years ago
1.0.8
7 years ago
1.0.7
7 years ago
1.0.6
7 years ago
1.0.5
7 years ago
1.0.2
7 years ago
1.0.1
7 years ago
1.0.0
7 years ago
0.4.2
7 years ago
0.4.1
7 years ago
0.4.0
7 years ago
0.3.0
7 years ago
0.2.0
7 years ago
0.1.4
7 years ago
0.1.3
7 years ago
0.1.2
7 years ago
0.1.1
7 years ago
0.1.0
7 years ago