Access USB & Bluetooth HID devices through Node.js
BSD-3-CLAUSE License
Bot releases are visible (Hide)
Published by todbot almost 7 years ago
In this release:
HID.setDriverType()
support for Linux as it broke prebuilds for everyone (see issue #242)hidraw
driver instead of libusb
(so usagePage works on Linux, for crypto keys mainly). See details belowNOTE for Linux users:
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
Published by todbot almost 7 years ago
Temp fix for prebuilt binaries. They should work now.
Published by todbot almost 7 years ago
New and potentially breaking changes:
hidraw
driver is now used by default instead of libusb
HID.setDriverType()
(see README for details)device.write()
and device.sendFeatureReport()
return number of bytes written. Issue #234Note: no prebuilt binaries available for this release
NOTE for Linux users:
/etc/udev/rules.d/51-blink1.rules
file to also contain:
KERNEL=="hidraw*", ATTRS{idVendor}=="27b8", ATTRS{idProduct}=="01ed", MODE="0666", GROUP="plugdev"
To install the new rules, unplug the blink(1) device and run the command:
sudo udevadm control --reload-rules
Published by todbot almost 7 years ago
Implements shared native library lazy loading to help with stub / CI tests.
See issue #226 ("don't execute code on require
")
Prebuilt-binary support for [email protected] and Node@8
Published by todbot about 7 years ago
New in this release:
prebuild
instead of node-pre-gyp
. Now we offer pre-built binaries for Node v8 and Electron and morenan
API deprecation notices in Node v8Published by todbot almost 8 years ago
node-hid 0.5.4
Fix module path and new multi-platform binary build process using Appveyor (Windows) and Travis (Linux & MacOSX)
Published by todbot almost 8 years ago
node-hid 0.5.2
Changes: