Returns exchange rates of the National Bank of the Republic of Belarus.
npm i -S nbrb-currency
var currency = require('nbrb-currency');
currency(function(err, data) {
var rate = data.currencies.find(function (item) {
return item.charCode === 'USD';
}).rate;
console.log(rate); //it will print rate for USD for current date
});
var currency = require('nbrb-currency');
currency('12/24/2014', function(err, data) {
var rate = data.currencies.find(function (item) {
return item.charCode === 'USD';
}).rate;
console.log(rate); //it will print rate for USD for date '12/24/2014': 10950
});