0.0.12 • Published 10 years ago

bitcoin-exchange-rates v0.0.12

Weekly downloads
79
License
-
Repository
github
Last release
10 years ago

Bitcoin Exchange Rates NPM version

Convert any Bitcoin amount to your preferred currency.

Installation

Using npm:

$ npm [-g] install kash

In Node.js:

var rates = require("bitcoin-exchange-rates");

Synopsis

var btcAmount, currency, rates;

rates = require('../lib/bitcoin-exchange-rates');

btcAmount = 0.100172;

currency = 'USD';

rates.fromBTC(btcAmount, currency, function (err, amount) {
  return console.log("" + btcAmount + " BTC = " + amount + " " + currency);
});

API

rates.fromBTC(amount, currency, callback(err, amount))

Convert an amount of Bitcoins to currency.

Author

twitter/matthewgh
Matthew Hudson
0.0.12

10 years ago

0.0.11

10 years ago