Skip to content

jimkang/random-apod

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

random-apod

Get a random Astronomy Picture of the Day with metadata.

Basically, selects a random entry from the apod JSON file!

Installation

npm install random-apod

Usage

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"
}

Tests

Run tests with make test.

License

See the apod credits.

About

Get a random Astronomy Picture of the Day with a little metadata.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published