Package Exports
- @ledgerhq/hw-transport-node-hid
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (@ledgerhq/hw-transport-node-hid) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme

Github, API Doc, Ledger Devs Slack
@ledgerhq/hw-transport-node-hid
Allows to communicate with Ledger Hardware Wallets.
[Node]/Electron (HID) – uses node-hid
and usb
.
API
Table of Contents
TransportNodeHid
Extends Transport
node-hid Transport implementation
Parameters
device
HID.HID
Examples
import TransportNodeHid from "@ledgerhq/hw-transport-node-hid";
...
TransportNodeHid.create().then(transport => ...)
exchange
Exchange with the device using APDU protocol.
Parameters
apdu
Buffer
Returns Promise<Buffer> a promise of apdu response
close
release the USB device.
Returns Promise<void>
isSupported
list
Returns Promise<Array<string>>
setListenDevicesDebounce
Parameters
delay
number
setListenDevicesPollingSkip
Parameters
conditionToSkip
function (): boolean
setListenDevicesDebug
Parameters
listen
Parameters
observer
Observer<DescriptorEvent<string>>
Returns Subscription
open
if path="" is not provided, the library will take the first device
Parameters
path
string