0.1.1 • Published 6 years ago

@ssalka/coinvert v0.1.1

Weekly downloads
2
License
MIT
Repository
-
Last release
6 years ago

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