Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/madnight/cryptocurrency-calculator-cli
Cryptocurrency Converter Calculator as command line util
https://github.com/madnight/cryptocurrency-calculator-cli
bitcoin bitcoin-calculator bitcoin-cli bitcoin-price calucator-application cli cryptocompare-api cryptocurrencies cryptocurrency es7-async ethereum functional-programming javascript nodejs npm-package terminal
Last synced: about 1 month ago
JSON representation
Cryptocurrency Converter Calculator as command line util
- Host: GitHub
- URL: https://github.com/madnight/cryptocurrency-calculator-cli
- Owner: madnight
- License: mit
- Created: 2017-12-16T17:13:41.000Z (about 7 years ago)
- Default Branch: master
- Last Pushed: 2024-01-09T18:13:08.000Z (12 months ago)
- Last Synced: 2024-11-15T05:22:51.948Z (about 2 months ago)
- Topics: bitcoin, bitcoin-calculator, bitcoin-cli, bitcoin-price, calucator-application, cli, cryptocompare-api, cryptocurrencies, cryptocurrency, es7-async, ethereum, functional-programming, javascript, nodejs, npm-package, terminal
- Language: JavaScript
- Size: 306 KB
- Stars: 8
- Watchers: 3
- Forks: 5
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# cryptocurrency-calculator-cli
[![npm](https://img.shields.io/npm/v/cryptocurrency-calculator-cli.svg)](https://npmjs.com/package/cryptocurrency-calculator-cli)
[![License: MIT](https://img.shields.io/badge/License-MIT-brightgreen.svg)](https://opensource.org/licenses/MIT)
[![Build Status](https://travis-ci.com/madnight/cryptocurrency-calculator-cli.svg?branch=master)](https://travis-ci.com/madnight/cryptocurrency-calculator-cli)Cryptocurrency Converter Calculator as command line util
## Requirements
* node 8.0 or higher
* npm or yarn## Usage
```bash
# install
npm install cryptocurrency-calculator-cli -g# or run with npx
npx cryptocurrency-calculator-cli# run default (shows current btc price)
cryptocurrency-calculator-cli# run with options
cryptocurrency-calculator-cli --amount 0.5 --from BTC --to USD
```## Options
```bash
cryptocurrency-calculator-cli --helpUsage: cryptocurrency-calculator-cli [options]
Options:
-V, --version output the version number
-a, --amount number of coins
-f, --from specify the coin to convert from e.g. ETH
-t, --to specify the coin to convert to e.g. BTC
-h, --help output usage information
```## Examples
```bash
cryptocurrency-calculator-cli --amount 0.5 --from BTC --to USD
9374.63 USDcryptocurrency-calculator-cli -a 0.5 -f BTC -t USD
9359.95 USDcryptocurrency-calculator-cli -f BTC -t USD
18722.87 USDcryptocurrency-calculator-cli -f ETH -t USD
690.21 USDcryptocurrency-calculator-cli -f ETH -t XRP
914.91 XRPcryptocurrency-calculator-cli -a 0.01 -f BTC -t ADA
567.8592 ADA
```