1.2.0 • Published 5 years ago

smc-node-kit v1.2.0

Weekly downloads
3
License
MIT
Repository
github
Last release
5 years ago

smc-node-kit

Build Status npm

Library to easily communicate with the Apple SMC through Node.js

Installation

npm install smc-node-kit

or

yarn add smc-node-kit

Documentation

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

5 years ago

1.1.0

5 years ago

1.0.11

5 years ago

1.0.10

5 years ago

1.0.8

5 years ago

1.0.7

5 years ago

1.0.6

5 years ago

1.0.5

5 years ago

1.0.2

5 years ago

1.0.1

5 years ago

1.0.0

5 years ago

0.4.2

5 years ago

0.4.1

5 years ago

0.4.0

5 years ago

0.3.0

5 years ago

0.2.0

5 years ago

0.1.4

5 years ago

0.1.3

5 years ago

0.1.2

5 years ago

0.1.1

5 years ago

0.1.0

5 years ago