Node.js CLI for quick and easy cryptocurrency conversions
coinvert is made available for install through NPM:
npm install -g @ssalka/coinvert
// or
yarn global add @ssalka/coinvert
coinvert performs a simple async request to fetch the current conversion price for a given pairing, and performs the conversion on a given amount:
coinvert 1 USD to USDT
> 1 USD = 1 USDT
import { coinvert } from '@ssalka/coinvert';
coinvert(1, 'USD', 'USDT').then(console.log); // 1