@ashleymcdonald/hid-listen

1.1.0 • Public • Published

hidlisten

Originally forked from https://github.com/zvecr/hid-listen due to repository being readonly / project abandoned.

Library for acquiring debugging information from usb hid devices

npm version

NodeJS implementation of https://www.pjrc.com/teensy/hid_listen.html.

Install

$ npm install hidlisten

Usage

const HIDListen = require('hidlisten');

const inst = new HIDListen();
inst.on('connect', () => {
    console.log('Listening:');
});
inst.on('disconnect', () => {
    console.log('Device disconnected.');
    console.log('Waiting for new device:');
});
inst.on('data', (data) => {
    console.log(data);
});

Package Sidebar

Install

npm i @ashleymcdonald/hid-listen

Weekly Downloads

2

Version

1.1.0

License

MIT

Unpacked Size

16.9 kB

Total Files

15

Last publish

Collaborators

  • silvs