# smc-node-kit

> Node.js bindings to communicate with the Apple SMC.

Latest version **1.2.0** (published 2019-07-25) · MIT license · 0 weekly downloads

> **Deprecated.** This package is deprecated.

## Install

```sh
npm install smc-node-kit
pnpm add smc-node-kit
yarn add smc-node-kit
bun add smc-node-kit
```

## Health

**Score 10/100 (F)** — status: deprecated.

Negative: deprecated.

## Facts

| | |
|---|---|
| Version | 1.2.0 |
| Published | 2019-07-25 |
| First published | 2019-06-24 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 2 |
| Unpacked size | 102.7 KB |
| Known vulnerabilities | 0 |
| Install scripts | yes |
| GitHub stars | 2 |
| Author | D0miH |
| Maintainers | d0mih |
| Keywords | smc, node, apple, mac |

## Links

- npm: https://www.npmjs.com/package/smc-node-kit
- Repository: https://github.com/D0miH/SMCNodeKit
- Homepage: https://github.com/D0miH/SMCNodeKit#readme
- Issues: https://github.com/D0miH/SMCNodeKit/issues
- npm.io page: https://npm.io/package/smc-node-kit

## Dependencies (2)

- [nan](https://npm.io/package/nan.md) ^2.14.0
- [node-pre-gyp](https://npm.io/package/node-pre-gyp.md) ^0.13.0

## Alternatives

- [@expo/fingerprint](https://npm.io/package/@expo/fingerprint.md) — 6.2M weekly downloads
- [@azure/monitor-opentelemetry-exporter](https://npm.io/package/@azure/monitor-opentelemetry-exporter.md) — 850.0K weekly downloads
- [@azure/monitor-opentelemetry](https://npm.io/package/@azure/monitor-opentelemetry.md) — 624.0K weekly downloads
- [@posthog/ai](https://npm.io/package/@posthog/ai.md) — 423.3K weekly downloads
- [fakefilter](https://npm.io/package/fakefilter.md) — 63.9K weekly downloads

## Recent versions

- 1.2.0 (latest) — 2019-07-25
- 1.1.0 — 2019-07-24
- 1.0.11 — 2019-07-14
- 1.0.10 — 2019-07-01
- 1.0.8 — 2019-06-30
- 1.0.7 — 2019-06-30
- 1.0.6 — 2019-06-30
- 1.0.5 — 2019-06-30
- 1.0.2 — 2019-06-30
- 1.0.1 — 2019-06-29
- 1.0.0 — 2019-06-29
- 0.4.2 — 2019-06-29
- 0.4.1 — 2019-06-29
- 0.4.0 — 2019-06-29
- 0.3.0 — 2019-06-29
- … 6 more at https://npm.io/package/smc-node-kit/versions

## README

# smc-node-kit

[![Build Status](https://img.shields.io/travis/D0miH/smc-node-kit.svg?style=flat-square)](https://travis-ci.org/D0miH/smc-node-kit) [![npm](https://img.shields.io/npm/v/smc-node-kit.svg?style=flat-square)](https://www.npmjs.com/package/smc-node-kit)

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

## Installation

```sh
npm install smc-node-kit
```

or

```sh
yarn add smc-node-kit
```

## Documentation

You can find the documentation [here](https://d0mih.github.io/smc-node-kit/).

## Usage

This little code snipped shows how to read the current CPU temperature:

```javascript
// 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:

```javascript
// 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();
```

---
_Source: https://npm.io/package/smc-node-kit · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
