node-usb-barcode-scanner
Package to help work with USB HID based barcode scanners in nodejs
Usage
var usbScanner = usbScanner;var getDevices = getDevices; //get array of attached HID devicesvar connectedHidDevices = //print devicesconsole //initialize new usbScanner - takes optional parmeters vendorId and hidMap - check source for detailsvar scanner = ; //scanner emits a data event once a barcode has been read and parsedscanner;
- Thanks @hanshuebner for node-hid