feed-discover
v2.0.0
Published
A module for automatic RSS/Atom feed discovery.
Downloads
8
Maintainers
Readme
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.
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
)