node-usb-cardreader
A NodeJS module to USB Card Reader
Github
Open source with a Github repository
Quick-start
$ npm i node-usb-cardreader
const USBCardReader = //Default optionsconst options = onRead: consolelog //function to be called onError: consolelog //function to be called onConnection: consolelog //function to be called idVendor: 0 // Mandatory to connect idProduct: 0 // Mandatory to connect lowerCase: true let reader = idVendor: 1204 idProduct: 4623 ; console
Building
Dependecy |
---|
usb |
Features
- getDeviceList - List all USB devices connecteds
- findDeviceByIds - Get an especific device using idVendor and idProduct
Information
If you are on Windows you must install WinUSB driver Zadig This project use USB Library for Node USB
Todos
- Tests