Security News
ESLint is Now Language-Agnostic: Linting JSON, Markdown, and Beyond
ESLint has added JSON and Markdown linting support with new officially-supported plugins, expanding its versatility beyond JavaScript.
@ledgerhq/hw-transport-node-hid-singleton
Advanced tools
Ledger Hardware Wallet Node implementation of the communication layer, using node-hid and node-usb
GitHub, Ledger Devs Discord, Developer Portal
Allows to communicate with Ledger Hardware Wallets.
[Node]/Electron (HID) – uses node-hid
and node-usb
. Keep transport opened and re-use it as a singleton, one device at a time on a computer but more robust implementation.
You may be using this package to open a USB connection between your desktop application and the device.
For a smooth and quick integration:
Extends TransportNodeHidNoEvents
node-hid Transport implementation
import TransportNodeHid from "@ledgerhq/hw-transport-node-hid-singleton";
...
TransportNodeHid.create().then(transport => ...)
Exchange with the device using APDU protocol.
apdu
BufferReturns Promise<Buffer> a promise of apdu response
observer
Observer<ListenDescriptorEvent>Returns Subscription
convenience wrapper for auto-disconnect logic
Returns Promise<void>
globally disconnect the transport singleton
if path="" is not provided, the library will take the first device
Returns Promise<TransportNodeHidSingleton>
FAQs
Ledger Hardware Wallet Node implementation of the communication layer, using node-hid and node-usb
The npm package @ledgerhq/hw-transport-node-hid-singleton receives a total of 1,210 weekly downloads. As such, @ledgerhq/hw-transport-node-hid-singleton popularity was classified as popular.
We found that @ledgerhq/hw-transport-node-hid-singleton demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
ESLint has added JSON and Markdown linting support with new officially-supported plugins, expanding its versatility beyond JavaScript.
Security News
Members Hub is conducting large-scale campaigns to artificially boost Discord server metrics, undermining community trust and platform integrity.
Security News
NIST has failed to meet its self-imposed deadline of clearing the NVD's backlog by the end of the fiscal year. Meanwhile, CVE's awaiting analysis have increased by 33% since June.