2.1.2 • Published 3 months ago

winusb-driver-generator v2.1.2

Weekly downloads
1,743
License
Apache-2.0
Repository
github
Last release
3 months ago

winusb-driver-generator

Build status

A Windows Node.js native add-on to associate USB devices to the generic WinUSB driver

Installation

Install winusb-driver-generator by running:

npm install --save winusb-driver-generator

Note that because of WinDDK, you can only build this module using Visual Studio 2013, and can't target a Node v9.0.0 ABI, which uses C++ constructs unsupported on such Visual Studio version.

Documentation

Object[] .listDriverlessDevices()

Return a list of all driverless devices found on the system.

For example:

winusbDriverGenerator.listDriverlessDevices().forEach((device) => {
  console.log(device)
})

Boolean .hasDriver(Number vendorId, Number productId)

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');
}

Void .associate(Number vendorId, Number productId, String description)

Associate a USB device with the generic WinUSB driver.

For example:

winusbDriverGenerator.associate(0x0a5c, 0x2764, 'Raspberry Pi USB boot');

Support

If you're having any problem, please raise an issue on GitHub and the Resin.io team will be happy to help.

Tests

Run the test suite by doing:

npm test

Contribute

Dependencies

Before submitting a PR, please make sure that you include tests, and that linters run without any warning:

npm run lint

License

The project is licensed under the Apache 2.0 license.

2.1.2

3 months ago

2.1.1

4 months ago

1.5.0

1 year ago

2.1.0

1 year ago

2.0.0

1 year ago

1.4.0

1 year ago

1.3.0

1 year ago

1.2.7

4 years ago

1.2.4

5 years ago

1.2.3

5 years ago

1.2.2

6 years ago

1.2.1

6 years ago

1.1.7

6 years ago

1.1.6

6 years ago

1.1.5

6 years ago

1.1.4

6 years ago

1.1.3

6 years ago

1.1.2

6 years ago

1.1.1

6 years ago

1.1.0

6 years ago

1.0.1

6 years ago

1.0.0

6 years ago