@beycanpress/currency-converter
TypeScript icon, indicating that this package has built-in type declarations

0.1.1 • Public • Published

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

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 0.1.1
    0
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 0.1.1
    0
  • 0.1.0
    0

Package Sidebar

Install

npm i @beycanpress/currency-converter

Weekly Downloads

0

Version

0.1.1

License

MIT

Unpacked Size

26 kB

Total Files

7

Last publish

Collaborators

  • beycandeveloper