Skip to content

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

License

Notifications You must be signed in to change notification settings

crypti/eth-price

Repository files navigation

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 © Crypti Team

About

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

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published