Get a random Astronomy Picture of the Day with metadata.
Basically, selects a random entry from the apod JSON file!
npm install random-apod
var randomApod = require('random-apod');
console.log(JSON.stringify(randomApod(), null, ' ');
Output:
{
"id": "http://apod.nasa.gov/apod/ap950627.html",
"title": "An Ultraviolet Image of M101",
"image": "http://apod.nasa.gov/apod/image/uitm101.gif"
}
Run tests with make test
.