Skip to content

It takes on the task of converting between fiat and cryptocurrencies.

License

Notifications You must be signed in to change notification settings

BeycanPress/currency-converter-js

Repository files navigation

Currency Converter

npm MIT License

About

It takes on the task of converting between fiat and cryptocurrencies.

Installation

npm install --save @beycanpress/currency-converter

Usage

import CurrencyConverter from '@beycanpress/currency-converter';
//or
const CurrencyConverter = require('@beycanpress/currency-converter');


// 'CoinMarketCap' can only use in backend. And it needs an API key.
let converter = new CurrencyConverter('CryptoCompare | CoinMarketCap', 'api key for coinmarketcap');
paymentPrice = await converter.convert('USD', 'BTC', 15 /* USD Price */);

paymentPrice // BTC Price

About

It takes on the task of converting between fiat and cryptocurrencies.

Resources

License

Stars

Watchers

Forks

Packages

No packages published