A simple Node.js module for converting currencies using Cbar.az data.
npm install node-cbar
const { CBAR, CurrencyTypes } = require('node-cbar');
const cl = new CBAR();
cl.convert({ amount: 2, currencyType:CurrencyTypes.USD}).then((result) => {
console.log(result);
});
logErrors
: Enable logging errors (default:false
)baseURL
: Base URL for CBAR data (default:https://www.cbar.az/currencies/
)date
: Date String for URL
This project is licensed under the ISC License - see the LICENSE.md file for details.