node-hid

Access USB & Bluetooth HID devices through Node.js

BSD-3-CLAUSE License

Downloads
282K
Stars
1.5K
Committers
36

Bot releases are visible (Hide)

node-hid - node-hid v3.0.0

Published by todbot 11 months ago

Changes in v3.0.0:

  • Support async usage and keeping the traditional synchronous usage. Thanks to @Julusian for the substantial rewrite work to support this, and for his patience. See #506, #499, #474 for more details.

  • device.getDeviceInfo() now returns the same content as provided by HID.devices(). Thx @Julusian! #499

  • Use pkg-prebuilds instead of prebuild and prebuild-upload. This means prebuilds are stored in the package for all platforms on npmjs, immediately able to be used, instead of being hosted on Github and pulled down on-demand . Thanks again @Julusian See #507, #490 for details.

  • Update to hidapi-0.14.0, which fixes numerous across all the OSes. This update is also in node-hid-v2.2.0

node-hid - node-hid v2.2.0

Published by todbot 11 months ago

Changes in this release:

  • Update hidapi to hidapi-0.14.0 (PR #513 & #509 thx @dsouza95 & @mcuee !)
  • Expand getDeviceInfo() to have same info as HID.devices() (PR #499 thx @Julusian!)
  • Update prebuild (should fix node-gyp errors when compiling)
node-hid - node-hid v2.1.2

Published by todbot about 2 years ago

node-hid is a thin wrapper over the cross-platform C-library hidapi.

Changes/Fixes in this release:

  • Fix Electron 21 not working #486
  • Update prebuild and prebuild-install
node-hid - node-hid v2.1.1 : update hidapi to 0.10.1

Published by todbot almost 4 years ago

Node-hid is a thin wrapper over the cross-platform C-library hidapi.
The hidapi used in node-hid has been updated to [email protected], which includes many improvements.

Also, node-hid has been tested in Apple Silicon M1 Macs, and prebuilds are generated for them.

node-hid - node-hid v2.1.0-0 : update hidapi to 0.10.1

Published by todbot almost 4 years ago

node-hid - node-hid v2.0.0-0 : move to N-API

Published by todbot almost 4 years ago

Node-hid now uses N-API instead of NAN to bind to hidapi.
This is due to node-abi's continuing issues with reporting the correct ABI for latest Electron & Node releases.
The benefit is only one binary per OS now.

node-hid -

Published by todbot almost 4 years ago

node-hid - node-hid v1.3.1

Published by todbot about 4 years ago

Updates in this release:

  • Support for Electron v10 and Node v14 (#392, #395)
  • Preliminary FreeBSD support (#396)
  • Cross-compile flag for setting CFLAGS and LDFLAGS when building with node-gyp (#393)
  • More fixes for context-aware / Worker thread use (#389, still ongoing but perhaps fixed)
  • Fix to allow use before Node v10
node-hid - https://github.com/node-hid/node-hid/releases/tag/v1.3.0

Published by todbot over 4 years ago

node-hid - node-hid v1.2.0

Published by todbot over 4 years ago

Changes/fixes in this release:

  • On Windows, device.on('data',...) event handler now allows process exit if device doesn't send data. This is accomplished by changing the underlying hidapi read from hid_read() to a looping hid_read_timeout(). Addresses issue #358 and others.

  • Node Buffers can now be used in device.write() and device.sendFeatureReport(). Allows a >10x speed up for certain types of data sends. See PR #357 (thanks @Julusian!)

node-hid - node-hid v1.1.0

Published by todbot almost 5 years ago

  • Includes updated hidapi that allows Macs to see devices with multiple usages/usagePages (#348)
  • Prebuilds now include Node v13 and Electron v6 (#352)
node-hid - node-hid v1.0.0

Published by todbot almost 5 years ago

Now uses libusb/hidapi! This should fix several outstanding issues.
Added support for Electron v7.
Up to Node v12 is supported (Node v13 isn't in node-abi yet, so prebuild can't make prebuilt binaries for it)

node-hid - node-hid v0.7.9

Published by todbot over 5 years ago

Linux: Add HID.setDriverType(type) where type can be "libusb" or "hidraw".

All Linux prebuilds have both driver types.

node-hid - node-hid v0.7.8

Published by todbot over 5 years ago

Update to support Node v12
Remove NAN deprecations when building

node-hid - node-hid v0.7.7

Published by todbot over 5 years ago

Update prebuild and bindings to solve Electron/node-abi prebuild issue #293.

node-hid - node-hid v0.7.6

Published by todbot almost 6 years ago

Works with Electron v4.0.0 and Node v11.x.
However, prebuilds for Electron v4 had to be removed because prebuild is generating wrong binaries some how.

node-hid - node-hid v0.7.5

Published by todbot almost 6 years ago

Small fixes for Node v11.0 and Electron v4.0.0.

Note: Removed Electron prebuilds for Node v11 & Electron v4 because still getting the error:

dyld: lazy symbol binding failed: Symbol not found
 Expected in: flat namespace
node-hid - https://github.com/node-hid/node-hid/releases/tag/v0.7.4

Published by todbot almost 6 years ago

node-hid - node-hid v0.7.3

Published by todbot over 6 years ago

Update to support Node v10