Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@ledgerhq/devices

Package Overview
Dependencies
Maintainers
11
Versions
261
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@ledgerhq/devices

Ledger devices

  • 4.36.2
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
219K
increased by4.04%
Maintainers
11
Weekly downloads
 
Created

What is @ledgerhq/devices?

@ledgerhq/devices is an npm package that provides a comprehensive set of tools and utilities for interacting with Ledger hardware wallets. It includes functionalities for managing device information, handling firmware updates, and interfacing with various Ledger applications.

What are @ledgerhq/devices's main functionalities?

List Supported Devices

This feature allows you to retrieve information about a specific Ledger device model. In this example, the code fetches details about the Ledger Nano S model.

const { getDeviceModel } = require('@ledgerhq/devices');

const deviceModel = getDeviceModel('nanoS');
console.log(deviceModel);

Identify Device by USB Product ID

This feature helps you identify a Ledger device based on its USB product ID. The code sample demonstrates how to get device information using a specific USB product ID.

const { identifyUSBProductId } = require('@ledgerhq/devices');

const deviceInfo = identifyUSBProductId(0x0001);
console.log(deviceInfo);

List All Devices

This feature provides a list of all supported Ledger devices. The code sample prints out the entire list of devices supported by the @ledgerhq/devices package.

const { devices } = require('@ledgerhq/devices');

console.log(devices);
0

Keywords

FAQs

Package last updated on 12 Feb 2019

Did you know?

Socket

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.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc