JSPM

spotthestation-rss-reader

0.1.2
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 4
  • Score
    100M100P100Q36516F
  • License MIT

Converts a NASA Spot The Station RSS file to a Javascript object.

Package Exports

  • spotthestation-rss-reader

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (spotthestation-rss-reader) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

SpotTheStation RSS Reader

Converts a SpotTheStation RSS file to a javascript object.

Data can be obtained from NASA's Spot The Station.

Simply lookup a city and then download the RSS file linked from that page:

http://spotthestation.nasa.gov/sightings/view.cfm?country=Germany&region=None&city=Berlin

Example

var request = require("request");
var IssReader = require('spotthestation-rss-reader');
 
var issReader = new IssReader();
 
var RSS_URI = 'http://spotthestation.nasa.gov/sightings/indexrss.cfm?'
           + 'country=Germany&region=None&city=Berlin';
 
request(RSS_URI, function(error, response, body) {
    if (!error && response.statusCode == 200)
        issReader.parseRSS(body, function(err, data) {
          console.log(data)
        });
});