Package Exports
- @ledgerhq/hw-transport-node-hid-singleton
 
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-singleton) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
@ledgerhq/hw-transport-node-hid-singleton
Allows to communicate with Ledger Hardware Wallets.
[Node]/Electron (HID) – uses node-hid and usb-detection. Keep transport opened and re-use it as a singleton, one device at a time on a computer but more robust implementation.
API
Table of Contents
TransportNodeHidSingleton
Extends TransportNodeHidNoEvents
node-hid Transport implementation
Examples
import TransportNodeHid from "@ledgerhq/hw-transport-node-hid-singleton";
...
TransportNodeHid.create().then(transport => ...)isSupported
list
listen
Parameters
observerObserver<DescriptorEvent<any>>
Returns Subscription
disconnect
globally disconnect the transport singleton
open
if path="" is not provided, the library will take the first device
Returns Promise<TransportNodeHidSingleton>