Library for acquiring debugging information from usb hid devices
NodeJS implementation of https://www.pjrc.com/teensy/hid_listen.html.
$ npm install hid-listen
const HIDListen = require('hid-listen');
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);
});