Need private packages and team management tools?Check out npm Teams »

node-nasa

0.0.1 • Public • Published

node-nasa

Node.js library for NASA's Open API http://data.nasa.gov/api-info/

** This is work in progress

Usage

/** Usage **/
var nasa = new NASA();
 
// params -- limit, callback
nasa.getRecentDatasets(10, function(error, response){
  console.log(error, response)
});
 
//params -- search term, callback
nasa.search('planet', function(error, response){
    console.log(error, response)
});
 
//params -- dataset ID, callback
nasa.getDataset(619, function(error, response){
    console.log(error, response)
});
 
//params -- date, limit, callback
nasa.getDateDatasets('2011-10', 20, function(error, response){
    console.log(error, response)
});
 
//params -- index type (possible types - date, tag, category)
//callback 
nasa.getIndex('category', function(error, response){
    console.log(error, response)
});
 
// params -- category, limit, callback
nasa.getCategoryDatasets('earth-science', 20, function(error, response){
    console.log(error, response)
});
 
// params -- tag, limit, callback
nasa.getTagDatasets('apollo', 25, function(error, response){
    console.log(error, response)
});

Keywords

none

Install

npm i node-nasa

DownloadsWeekly Downloads

0

Version

0.0.1

License

none

Last publish

Collaborators

  • avatar