btc-converter-coindesk

A CLI to convert Bitcoin to any currency provided.

Usage no npm install needed!

<script type="module">
  import btcConverterCoindesk from 'https://cdn.skypack.dev/btc-converter-coindesk';
</script>

README

Btc-converter-coindesk

Build Status Coverage Status

A CLI to convert Bitcoin to any currency provided.

Installing

$ npm i -g btc-converter-coindesk

How to use

btc-converter-coindesk --help

  Usage: bitcoin-converter-coindesk [options]

  Convert Bitcoin to any currency defined

  Options:

    -h, --help                 output usage information
    -V, --version              output the version number
    -C, --currency <currency>  Currency to be converted. (Default: USD)
    -A, --amount <amount>      Value in Bitcoin to convert. (Default: 1)

Dependencies

This library depends on node version 10 or bigger.

Run tests

$ npm test

Programming with TDD

$ npm run test:tdd

Check tests coverage

$ npm run test:coverage

Add project to terminal

$ npm run build
$ npm link