# @node-pigpio/core

> pigpiod client for node.js

Latest version **0.2.3** (published 2020-12-07) · ISC license · 0 weekly downloads

## Install

```sh
npm install @node-pigpio/core
pnpm add @node-pigpio/core
yarn add @node-pigpio/core
bun add @node-pigpio/core
```

## Health

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

Positive: has types; no vulnerabilities.

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

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.2.3 |
| Published | 2020-12-07 |
| First published | 2020-11-29 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 174.8 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 2 |
| Author | satoren |
| Maintainers | satoren |
| Keywords | raspberrypi, pigpio, gpio, i2c, spi |

## Links

- npm: https://www.npmjs.com/package/@node-pigpio/core
- Repository: https://github.com/satoren/node-pigpio
- Homepage: https://github.com/satoren/node-pigpio#readme
- Issues: https://github.com/satoren/node-pigpio/issues
- npm.io page: https://npm.io/package/@node-pigpio/core

## 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.2.3 (latest) — 2020-12-07
- 0.2.2 — 2020-12-05
- 0.2.1 — 2020-11-30
- 0.2.0 — 2020-11-29
- 0.1.3 — 2020-11-29
- 0.1.2 — 2020-11-29
- 0.1.1 — 2020-11-29

## README

# `@node-pigpio/core`

This is the same feature as the original [python library](http://abyz.me.uk/rpi/pigpio/python.html) except that all requests are asynchronous.

## Usage

```ts
import * as pigpio from '@node-pigpio/core'
(async ()={
    const pi1 = await pigpio.pi()       // pi1 accesses the local Pi's GPIO
    const pi2 = await pigpio.pi('tom')  // pi2 accesses tom's GPIO
    const pi3 = await pigpio.pi('dick') // pi3 accesses dick's GPIO

    await pi1.write(4, 0) // set local Pi's GPIO 4 low
    await pi2.write(4, 1) // set tom's GPIO 4 to high
    await pi3.read(4)     // get level of dick's GPIO 4
})()
```

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