WebUSB API in the usb package instead |
---|
Node.js implementation of the WebUSB Specification
Node.js > v8.14.0, which includes npm
.
$ npm install webusb
See the examples in examples or view the API documentation at:
https://thegecko.github.io/webusb/
The WebUSB specification can be found here:
https://wicg.github.io/webusb/
- getDevices()
- requestDevice()
- usbVersionMajor
- usbVersionMinor
- usbVersionSubminor
- deviceClass
- deviceSubclass
- deviceProtocol
- vendorId
- productId
- deviceVersionMajor
- deviceVersionMinor
- deviceVersionSubminor
- manufacturerName
- productName
- serialNumber
- configuration
- configurations
- opened
- open()
- close()
- selectConfiguration()
- claimInterface()
- releaseInterface()
- selectAlternateInterface()
- controlTransferIn()
- controlTransferOut() -
bytesWritten
always equals the initial buffer length - transferIn()
- transferOut() -
bytesWritten
always equals the initial buffer length - clearHalt()
- reset()
- isochronousTransferIn() - currently unsupported in node-usb
- isochronousTransferOut() - currently unsupported in node-usb
- connect
- disconnect
- USBDevice.url
- Device selector hook
- API Documentation
- Examples