0.1.2 • Published 7 years ago

usb-panic-button v0.1.2

Weekly downloads
5
License
ISC
Repository
github
Last release
7 years ago

panic-button

A node.js module for interfacing with the cool-looking USB Panic Button hardware like this one.

Dependencies

This module needs usb module (which depends on libusb) in order to access the button hardware. On macOS, you can install libusb using homebrew by running:

brew install libusb

Getting Started

Initialize a new PanicButton object and attach listeners to its "pressed" event. A simple example is shown below:

const PanicButton = require('usb-panic-button');
const panicButton = new PanicButton();

panicButton.on('pressed', () => {
  console.log('button pressed!');
});
0.1.2

7 years ago

0.1.1

7 years ago

0.1.0

7 years ago