npm

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

feed-discover

2.0.0 • Public • Published

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

install

npm i feed-discover

Downloadsweekly downloads

27

version

2.0.0

license

MIT

homepage

github.com

repository

Gitgithub

last publish

collaborators

  • avatar
Report a vulnerability