项目作者: madnight

项目描述 :
Cryptocurrency Converter Calculator as command line util
高级语言: JavaScript
项目地址: git://github.com/madnight/cryptocurrency-calculator-cli.git
创建时间: 2017-12-16T17:13:41Z
项目社区:https://github.com/madnight/cryptocurrency-calculator-cli

开源协议:MIT License

下载


cryptocurrency-calculator-cli

npm
License: MIT
Build Status

Cryptocurrency Converter Calculator as command line util

Requirements

  • node 8.0 or higher
  • npm or yarn

Usage

  1. # install
  2. npm install cryptocurrency-calculator-cli -g
  3. # or run with npx
  4. npx cryptocurrency-calculator-cli
  5. # run default (shows current btc price)
  6. cryptocurrency-calculator-cli
  7. # run with options
  8. cryptocurrency-calculator-cli --amount 0.5 --from BTC --to USD

Options

  1. cryptocurrency-calculator-cli --help
  2. Usage: cryptocurrency-calculator-cli [options]
  3. Options:
  4. -V, --version output the version number
  5. -a, --amount <n> number of coins
  6. -f, --from <string> specify the coin to convert from e.g. ETH
  7. -t, --to <string> specify the coin to convert to e.g. BTC
  8. -h, --help output usage information

Examples

  1. cryptocurrency-calculator-cli --amount 0.5 --from BTC --to USD
  2. 9374.63 USD
  3. cryptocurrency-calculator-cli -a 0.5 -f BTC -t USD
  4. 9359.95 USD
  5. cryptocurrency-calculator-cli -f BTC -t USD
  6. 18722.87 USD
  7. cryptocurrency-calculator-cli -f ETH -t USD
  8. 690.21 USD
  9. cryptocurrency-calculator-cli -f ETH -t XRP
  10. 914.91 XRP
  11. cryptocurrency-calculator-cli -a 0.01 -f BTC -t ADA
  12. 567.8592 ADA