# node-wiring-pi

> Bindings to native wiringPi

Latest version **0.0.5** (published 2019-04-21) · BSD-3-Clause license · 0 weekly downloads

## Install

```sh
npm install node-wiring-pi
pnpm add node-wiring-pi
yarn add node-wiring-pi
bun add node-wiring-pi
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.0.5 |
| Published | 2019-04-21 |
| First published | 2017-01-05 |
| Weekly downloads | 0 |
| License | BSD-3-Clause |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 3 |
| Unpacked size | 152.3 KB |
| Known vulnerabilities | 0 |
| Install scripts | yes |
| GitHub stars | 7 |
| Author | Richard Grime |
| Maintainers | rsg98 |
| Keywords | wiringPi, gpio, raspberry, pi, raspberrypi, bcm2835 |

## Links

- npm: https://www.npmjs.com/package/node-wiring-pi
- Repository: https://github.com/rsg98/node-wiring-pi
- Homepage: https://github.com/rsg98/node-wiring-pi#readme
- Issues: https://github.com/rsg98/node-wiring-pi/issues
- npm.io page: https://npm.io/package/node-wiring-pi

## Dependencies (3)

- [nan](https://npm.io/package/nan.md) ^2.13.2
- [bindings](https://npm.io/package/bindings.md) ^1.5.0
- [node-gyp](https://npm.io/package/node-gyp.md) ^3.8.0

## Alternatives

- [@openai/codex-sdk](https://npm.io/package/@openai/codex-sdk.md) — 731.4K weekly downloads
- [babel-plugin-transform-react-jsx](https://npm.io/package/babel-plugin-transform-react-jsx.md) — 565.0K weekly downloads
- [babel-helper-remove-or-void](https://npm.io/package/babel-helper-remove-or-void.md) — 508.5K weekly downloads
- [@pnpm/store-controller-types](https://npm.io/package/@pnpm/store-controller-types.md) — 186.9K weekly downloads
- [react-native-signature-canvas](https://npm.io/package/react-native-signature-canvas.md) — 155.6K weekly downloads

## Recent versions

- 0.0.5 (latest) — 2019-04-21
- 0.0.4 — 2017-11-21
- 0.0.3 — 2017-01-31
- 0.0.2 — 2017-01-28
- 0.0.1 — 2017-01-05

## README

##Node.js bindings to [wiringPi](http://www.wiringpi.com)

node-wiring-pi is based on https://github.com/WiringPi/WiringPi-Node

It differs from the original project by:

* Using a vanilla WiringPi.com install, rather than a customised build.  
This version of the node bindings will be missing features that have been added to https://github.com/WiringPi/WiringPi-Node.

* Using [NAN](https://github.com/nodejs/nan) to provide Node version abstraction
Hopefully this makes it more resilient against Node API changes

This should mean that installation is simpler, and supports npm install -g (global mode).

## Install

Make sure you have [WiringPi](http://wiringpi.com/download-and-install/) installed.  On Raspbian Jessie, this should be as easy as:

```
sudo apt-get install wiringpi
```

See the [WiringPi](http://wiringpi.com/download-and-install/) link for more options and details.

To install this node module:

```
npm install node-wiring-pi
```

## Usage

```javascript
var wpi = require('node-wiring-pi');
```

## TODO

* Documentation!
* Review export constants
* Add NAN_MODULE_INIT signatures to .h files
* Update build script - rebuild or configure build?
* Add devlib / extensions
* wiringPiISR vs epoll documentation (#3)
* Add util to replace gpio (read config and set pins as root)

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