# hungerford

> Node helper lib for Hungerford

Latest version **2.0.0** (published 2015-11-14) · ISC license · 0 weekly downloads

## Install

```sh
npm install hungerford
pnpm add hungerford
yarn add hungerford
bun add hungerford
```

## Health

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

Positive: no vulnerabilities.

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

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 2.0.0 |
| Published | 2015-11-14 |
| First published | 2015-11-07 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 1 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | Jens Lind |
| Maintainers | jenslind |

## Links

- npm: https://www.npmjs.com/package/hungerford
- npm.io page: https://npm.io/package/hungerford

## Dependencies (1)

- [serialport](https://npm.io/package/serialport.md) ^2.0.2

## Recent versions

- 2.0.0 (latest) — 2015-11-14
- 1.0.1 — 2015-11-07

## README

# Node-hungerford
> Talk to Hungerford via Node.js

## Install
```
npm install hungerford
```

## Usage
```javascript
const hungerford = require('hungerford')

hungergford.setup('/dev/usb')

// When serial connection is established
hungerford.on('ready', () => {
  // When a switch is turned on or off
  hungerford.on('switch', (data) => {
    console.log(data)

    // Turn on some leds
    hungerford.turnOnLED('green') // Or 'red'
    hungerford.turnOffLED('green')

    // BLINK ;))))
    hungerford.blinkLED('green', 2000) // 2000 = interval in ms
  })
})

```

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