How to use the @ledgerhq/devices.identifyProductName function in @ledgerhq/devices

To help you get started, weā€™ve selected a few @ledgerhq/devices 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 LedgerHQ / ledgerjs / packages / hw-transport-node-hid-noevents / src / TransportNodeHid.js View on Github external
constructor(device: HID.HID) {
    super();
    this.device = device;
    // $FlowFixMe
    const info = device.getDeviceInfo();
    this.deviceModel =
      info && info.product ? identifyProductName(info.product) : null;
  }