npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

hardware-wallet-cli

v0.2.0

Published

CLI for creating, managing and using a pseudo hardware wallet

Downloads

5

Readme

Hardware Wallet CLI

CLI for creating, managing and using a pseudo hardware wallet

Table of Contents

About

Hardware Wallet CLI provides a flexible set of commands for users to create, manage, send and receive using a pseudo hardware wallet. Akin to a Ledger device, this CLI gives you the necessary commands to interact with a hardware wallet without the need to purchase an overrated and expensive device to manage an encrypted wallet.

How to install

You can install the CLI with the following command:

npm install hardware-wallet-cli

or

yarn add hardware-wallet-cli

Supported arguments and commands

Usage

All interactions with hardware-wallet-cli are of the form

hardware-wallet-cli [command] [options]

If no command is specified then the help command is used by default

Help Usage

To display basic commands and arguments -

hardware-wallet-cli --help

Available Commands

Help

Access the help menu for the CLI

$ hardware-wallet-cli help

$ hardware-wallet-cli help

CLI for creating, managing and using a pseudo hardware wallet

Options:
  -V, --version       output the version number
  -h, --help          display help for command

Commands:
  generate [options]  generate a new phrase and encrypt it
  send [options]      sends a token using the hardware wallet to another address
  receive [options]   receive a token using the hardware wallet
  balance [options]   check the balance of a token using the hardware wallet
  help [command]      display help for command

Generate

Generate a new phrase and encrypt it:
$ hardware-wallet-cli generate --password <string> --file <string>(optional)

$ hardware-wallet-cli generate [options]

generate a new phrase and encrypt it

Options:
  -p, --password <string>  Password to encrypt the phrase
  -f, --file <string>      File to store the encrypted phrase (default: $CWD)
  -h, --help               display help for command

Send

Sends a token using the hardware wallet to another address:
$ hardware-wallet-cli send --to <address> --chain <Chain> --token <string> (optional) --amount <amount> --password <string> --file <string>(optional)

$ hardware-wallet-cli send [options]

sends a token using the hardware wallet to another address

Options:
  -t, --to <string>        Recipient address of the transfer
  -c, --chain <Chain>      Chain to conduct the transfer on
  -tk, --token <string>    Token to send, not required for native ETH and BTC transfers
  -a, --amount <string>    Amount of asset to send
  -p, --password <string>  Password to decrypt the phrase
  -f, --file <string>      File to store the encrypted phrase (default: $CWD)
  -h, --help               display help for command

Receive

Receive a token using the hardware wallet:
$ hardware-wallet-cli receive --chain <string>(optional) --password <string> --file <string>(optional)

$ hardware-wallet-cli receive [options]

receive a token using the hardware wallet

Options:
  -c, --chain <Chain>      Chain to receive the tokens, either 'btc' or 'eth' or 'bsc'
  -p, --password <string>  Password to decrypt the phrase
  -f, --file <string>      File to store the encrypted phrase (default: CWD)
  -h, --help               display help for command

Balance

Balance a token using the hardware wallet:
$ hardware-wallet-cli balance --chain <string>(optional) --password <string> --file <string>(optional)

$ hardware-wallet-cli balance [options]

check the balance of a token using the hardware wallet

Options:
  -c, --chain <Chain>      Chain to check available tokens, either 'btc' or 'eth' or 'bsc'
  -p, --password <string>  Password to decrypt the phrase
  -f, --file <string>      File to store the encrypted phrase (default: $CWD)
  -h, --help               display help for command

Contributing

  1. Fork it (https://github.com/0xAzureDev/hardware-wallet-cli/fork)
  2. Create your feature branch (git checkout -b feature/fooBar)
  3. Commit your changes (git commit -am 'feat: some fooBar')
  4. Push to the branch (git push origin feature/fooBar)
  5. Create a new Pull Request

License

Distributed under the MIT License. See LICENSE for more information. LicenseContributing