price-of-gold

Look up the price of Gold in USD

Usage no npm install needed!

<script type="module">
  import priceOfGold from 'https://cdn.skypack.dev/price-of-gold';
</script>

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