npm install nasa-insight-api --save
Sign up for a NASA developer API Key here. Create a new instance of the client library with:
const Insight = require('nasa-insight-api');
const insight = new Insight({apiKey: 'YOUR_KEY'});
insight.images.get(options = {}, (err, res, body) => console.log(body));
insight.images.get(options = {}, cb)
insight.images.getBy(solStart, solEnd, cameras, per_page, page, cb)
MIT