A CLI to convert bitcoin to any provided currency.
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.
$ npm install -g btc-converter-tool
- 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!
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. (Default: USD)
-A, --amount <amount> Value in Bitcoin to convert. (Default: 1)
We use SemVer for versioning. For the versions available, see the tags on this repository.
Please read CONTRIBUTING.md for details on our code of conduct, and the process for submitting pull requests to us.
This project is licensed under the MIT License - see the LICENSE.md file for details