Skip to content

Bulletin of official rates of the Central Bank of the Republic of Azerbaijan against the Azerbaijani manat of foreign currencies and bank metals

License

Notifications You must be signed in to change notification settings

Faridbabayev001/cbar-currency-converter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

Bulletin of official rates of the Central Bank of the Republic of Azerbaijan against the Azerbaijani manat of foreign currencies and bank metals

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published