Skip to content

Latest commit

 

History

History
33 lines (23 loc) · 815 Bytes

README.md

File metadata and controls

33 lines (23 loc) · 815 Bytes

coinvert

Node.js CLI for quick and easy cryptocurrency conversions

npm (scoped) CircleCI

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