@aleworm/hw-transport-node-hid-noevents

5.51.2 • Public • Published

Github, Ledger Devs Slack

@ledgerhq/hw-transport-node-hid-noevents

Allows to communicate with Ledger Hardware Wallets.

[Node]/Electron (HID) – uses only node-hid. Does not provide USB events.

API

Table of Contents

TransportNodeHidNoEvents

Extends Transport

node-hid Transport minimal implementation

Parameters

  • device HID.HID

Examples

import TransportNodeHid from "@ledgerhq/hw-transport-node-hid-noevents";
...
TransportNodeHid.create().then(transport => ...)

exchange

Exchange with the device using APDU protocol.

Parameters

Returns Promise<Buffer> a promise of apdu response

close

release the USB device.

Returns Promise<void>

isSupported

Returns Promise<boolean>

list

Returns Promise<Array<string?>>

listen

Parameters
  • observer Observer<DescriptorEvent<string?>>

Returns Subscription

open

if path="" is not provided, the library will take the first device

Parameters

Package Sidebar

Install

npm i @aleworm/hw-transport-node-hid-noevents

Weekly Downloads

2

Version

5.51.2

License

Apache-2.0

Unpacked Size

47.5 kB

Total Files

10

Last publish

Collaborators

  • aleworm