Get currency conversion
After changing directory to the current one, you can install the libraries by using the following command:
❯ npm install
Launch:
❯ node bin/index.js
It will return the conversion rate from a default currency (USD) to others (USD, EUR, GBP, JPY by default).
If you want to know the conversion rate between specific currencies, use the following command:
❯ node bin/index.js --set <FROM> <TO>
You just have to define the original currency and the desired currencies.
If you want to know the conversion of a value from a currency to another, use the following command:
❯ node bin/index.js <amount> <FROM> <TO>
You just have to define the amount to convert, the original currency and the desired currencies.
If you want to change the default currencies, use the following command:
❯ node bin/index.js -s <FROM> <TO>
You just have to define the original currency and the desired currencies.
If you have any doubt about the commands, you can also find the information by using the help command:
❯ node bin/index.js --help