@ssalka/coinvert
v0.1.1
Published
Node.js CLI for quick and easy cryptocurrency conversions
Downloads
13
Readme
coinvert
Node.js CLI for quick and easy cryptocurrency conversions
Installation
coinvert is made available for install through NPM:
npm install -g @ssalka/coinvert
// or
yarn global add @ssalka/coinvert
Usage
CLI
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
Named Export
import { coinvert } from '@ssalka/coinvert';
coinvert(1, 'USD', 'USDT').then(console.log); // 1