Get unlimited public & private packages + package-based permissions with npm Pro.Get started »

price-of-gold

1.0.3 • Public • Published

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
});

Keywords

Install

npm i price-of-gold

DownloadsWeekly Downloads

2

Version

1.0.3

License

MIT

Last publish

Collaborators

  • avatar