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

eth-cli

v2.0.2

Published

A collection of CLI tools to help with ethereum learning and development.

Downloads

250

Readme

eth-cli

A CLI swiss army knife for Ethereum developers

Donate with Ethereum

Build Status NPM version MIT licensed dependencies Status devDependencies Status

Why use it?

eth-cli allows you to fetch data from the blockchain, start an interactive REPL connected to some node, call methods on deployed contracts, and more, all at the comfort of your command line. Checkout the examples below for more information or check the full list of commands.

Table of Contents

Installation

Install it globally:

npm install -g eth-cli

You can also try it with npx:

$ npx eth-cli repl --mainnet erc721@0x06012c8cf97bead5deae237070f9587f8e7a266d
> erc721.methods.name().call()
'CryptoKitties'

Demo

Check this screencast to see it in action.

Examples

There are a lot of things that you can do with eth-cli, and we keep adding more. These are some of our favorites:

Fetch data from the blockchain

Use commands like block:number, tx:get and address:balance to get information from the blockchain.

Fetch data from the blockchain

more examples

Autocomplete

eth-cli supports some basic autocompletion, generated with completely.

The completion directory has a bash completion script (eth-completion.bash) and a zsh completion script (_eth). If you use bash, download the script and source it in your bashrc. If you use zsh, download the script and put it in some directory in your fpath.

Init file

If you want to have some helper variables or functions in your REPL, you can create an init file that will be loaded every time you use eth repl. Just create a file called .eth_cli_repl_init.js in your home directory. For example, if you create it with some content like:

module.exports = function(context) {
  context.toWei = x => context.web3.utils.toWei(x.toString())
  context.fromWei = x => context.web3.utils.fromWei(x.toString())
}

you will have toWei and fromWei as global functions in the REPL.

Sibling projects

  • Solhint: A linter for the Solidity language.

Back us

eth-cli is free to use and open-sourced. If you value our effort and feel like helping us to keep pushing this tool forward, you can send us a small donation. We'll highly appreciate it :)

Donate with Ethereum

Credits

Table of Contents generated with DocToc