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

eth-price

Package Overview
Dependencies
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

eth-price

A CLI to get the current ETH price from your terminal in USD or other cryptocurrency symbols

  • 0.1.5
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
19
increased by111.11%
Maintainers
1
Weekly downloads
 
Created
Source

eth-price Travis branch Coveralls branch

💫 A CLI app to grab the current ETH price from your terminal in USD and/or other cryptocurrency symbols

A super simple CLI utilizing CryptoCompare API to grab the ETH price during a serious code session.

Demo of fetching prices

CLI

Install

$ npm install --global eth-price

Usage

$ eth-price --help

Usage
$ eth-price [toSymbol]

Examples
$ eth-price
USD: 262.69

$ eth-price btc
BTC: 0.0927

$ eth-price xrp,btc,usd
XRP: 937.07
BTC: 0.09277
USD: 261.91

JavaScript Usage

Install

$ npm install --save eth-price

Usage

const ethPrice = require('eth-price');

ethPrice('usd,btc');
// ['USD: 260.23', 'BTC: 0.0923']

API

ethPrice(toSymbols)

Returns a string formatted list of the prices in their symbols.

toSymbols

Type: string

A string list of symbols you want the ETH price in.

License

MIT © Brandon Him

Keywords

FAQs

Package last updated on 12 Jun 2017

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