a module for automatic RSS/Atom feed discovery
JavaScript
Latest commit b669a22 Apr 3, 2016 @michaelrhodes 1.0.6
Permalink
Failed to load latest commit information.
bin
test
.gitignore
.travis.yml
index.js
package.json
readme.md

readme.md

feed-discover

feed-discover is a module for automatic RSS/Atom feed discovery. It exposes a transform stream that reads in HTML and writes out feed URLs.

Build status

Install

$ npm install [-g] feed-discover

Usage

cli

$ feed-discover http://some-site.com

module

var request = require('hyperquest')
var discover = require('feed-discover')

var url = 'http://some-site.com'

request(url)
  .pipe(discover(url))
  .on('data', function(feed) {
    // http://some-site.com/rss.xml
  })

API

feed-discover(

  url (string):
    the address used to resolve absolute paths.
    eg. /path/to/feed -> http://some-site.com/path/to/feed

)

License

MIT