price-of-gold
v1.0.3
Published
Look up the price of Gold in USD
Downloads
4
Readme
Price of Gold
Look up the historical price of gold in USD.
NOTE: This doesn't work any more. The latest available date is 2016-04-18
Usage
npm install price-of-gold
Examples:
var PriceOfGold = require('price-of-gold');
PriceOfGold.latest(function (err, price) {
console.log(price.date);
console.log(price.price); // In USD
});
PriceOfGold.at(new Date('2015-10-17'), function (err, price) {
console.log(price.date);
console.log(price.price); // In USD
});