btc-converter-tool
A CLI to convert bitcoin to any provided currency.
Installing the CLI
You can use this library by 2 ways: trough npm repository or by building the library locally. If you can't use it from the npm repository, try generating a new API key and building the library locally.
Installing from npm repository
$ npm install -g btc-converter-tool
Building the package locally
- Clone this repo:
git@github.com:lcnogueira/btc-converter-tool.git
- Install the dependencies:
npm install
. - Create an account on
https://bitcoinaverage.com
and get a public API. - Fill the
API_KEY
field in theenv.example
file with the new gerated public API and rename the file to.env
. - Build the library:
npm run build
. - Link the code:
npm link
(it's notnpm run link
). - Have fun!
How to use
btc-converter --help Usage: btc-converter [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. -A, --amount <amount> Value in Bitcoin to convert.
Versioning
We use SemVer for versioning. For the versions available, see the tags on this repository.
Contributing
Please read CONTRIBUTING.md for details on our code of conduct, and the process for submitting pull requests to us.
License
This project is licensed under the MIT License - see the LICENSE.md file for details