npm node-hid 0.7.2
node-hid v0.7.2

latest releases: 3.0.0, 2.2.0, 2.1.2...
6 years ago

In this release:

  • Roll-back HID.setDriverType() support for Linux as it broke prebuilds for everyone (see issue #242)
  • Linux: default to hidraw driver instead of libusb (so usagePage works on Linux, for crypto keys mainly). See details below

NOTE for Linux users:

  • If you have udev rules they will need to be updated. For instance, for blink(1), the udev rules to support both libusb and hidraw would be in the file /etc/udev/rules.d/51-blink1.rules and contain:
    SUBSYSTEM=="input", GROUP="input", MODE="0666"
    SUBSYSTEM=="usb", ATTRS{idVendor}=="27b8", ATTRS{idProduct}=="01ed", MODE:="666", GROUP="plugdev"
    KERNEL=="hidraw*", ATTRS{idVendor}=="27b8", ATTRS{idProduct}=="01ed", MODE="0666", GROUP="plugdev"
    
    To install the new rules, unplug the HID device and run the command:
    sudo udevadm control --reload-rules
    

Don't miss a new node-hid release

NewReleases is sending notifications on new releases.