How to use the @ledgerhq/hw-transport-node-hid.list function in @ledgerhq/hw-transport-node-hid

To help you get started, weā€™ve selected a few @ledgerhq/hw-transport-node-hid examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github LiskHQ / lisk-desktop / app / src / ledger.js View on Github external
const clearDevices = async () => {
  const connectedPaths = await TransportNodeHid.list();
  devices
    .filter(device => !connectedPaths.includes(device.path))
    .forEach(device => removeConnectedDeviceByPath(device.path));

  devices = devices.filter(device => connectedPaths.includes(device.path));
};
github CityOfZion / neon-wallet / app / ledger / neonLedger.js View on Github external
static async list (): Promise {
    return LedgerNode.list()
  }