bitcoin-exchange-rates

Convert any Bitcoin amount to your preferred currency.

Bitcoin Exchange Rates

Using npm:

$ npm [-g] install kash

In Node.js:

var rates = require("bitcoin-exchange-rates");
var btcAmount, currency, rates;
 
rates = require('../lib/bitcoin-exchange-rates');
 
btcAmount = 0.100172;
 
currency = 'USD';
 
rates.fromBTC(btcAmount, currency, function (erramount) {
  return console.log("" + btcAmount + " BTC = " + amount + " " + currency);
});

Convert an amount of Bitcoins to currency.

Matthew Hudson