A Windows Node.js native add-on to associate USB devices to the generic WinUSB driver
Install winusb-driver-generator
by running:
npm install --save winusb-driver-generator
Building from Source:
Return a list of all driverless devices found on the system.
For example:
winusbDriverGenerator.listDriverlessDevices().forEach((device) => {
console.log(device)
})
Check if there is a driver associated with a USB device given its vendor and product ID pairs.
For example:
if (!winusbDriverGenerator.hasDriver(0x0a5c, 0x2764)) {
console.log('There is no driver for this device');
}
Associate a USB device with the generic WinUSB driver.
For example:
winusbDriverGenerator.associate(0x0a5c, 0x2764, 'Raspberry Pi USB boot');
If you're having any problem, please raise an issue on GitHub and the Resin.io team will be happy to help.
Run the test suite by doing:
npm test
- Issue Tracker: github.com/balena-io-modules/winusb-driver-generator/issues
- Source Code: github.com/balena-io-modules/winusb-driver-generator
Before submitting a PR, please make sure that you include tests, and that linters run without any warning:
npm run lint
The project is licensed under the Apache 2.0 license.