Skip to content

Instantly share code, notes, and snippets.

@stewart
Created February 14, 2014 23:41
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save stewart/9011885 to your computer and use it in GitHub Desktop.
Save stewart/9011885 to your computer and use it in GitHub Desktop.
Using node-hid to show all HID device names
// note, requires node-hid (npm install node-hid)
var HID = require('node-hid'),
devices = HID.devices();
for (var i = 0; i < devices.length; i++) {
console.log(devices[i].product);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment