cbar-currency-converter

1.0.1 • Public • Published

Cbar Currency Converter

A simple currency converter based on cbar.az.

Getting started

Installation

This package can be installed using npm

npm install cbar-currency-converter

Usage

Import cbar-currency-converter and use it as a Promise.

const cbar = require('cbar-currency-converter');

cbar({ to: "USD", "amount": 1 }).then(response => console.log(response));

// OR

cbar({ from: "USD", "amount": 1 }).then(response => console.log(response));

Without the last parameter, the function will return the currency based on the current day conversion. To pass the date to convert, pass the last parameter in the format DD.MM.YYYY.

const cbar = require('cbar-currency-converter');

cbar({ to: "USD", "amount": 1, currencyDate: "25.12.2018" }).then(response => console.log(response));

Issues

If any issues are found, they can be reported here.

License

This project is licensed under the MIT license.

Package Sidebar

Install

npm i cbar-currency-converter

Weekly Downloads

2

Version

1.0.1

License

MIT

Unpacked Size

6.19 kB

Total Files

5

Last publish

Collaborators

  • faridbabayev