Skip to content
This repository has been archived by the owner on Jan 24, 2020. It is now read-only.

Latest commit

 

History

History
23 lines (16 loc) · 850 Bytes

README.md

File metadata and controls

23 lines (16 loc) · 850 Bytes

A simple feed finder for node.js, inspired by the python script originally written by Mark Pilgrim and currently maintained by Aaron Swartz

How it works

  1. Checks if resource is a feed
  2. Looks for link tags

Usage

Much like the python inspiration, offers two functions, feed and feeds.

var feedfinder = require('./lib/feedfinder');
var log = function (err,res) { if (err) console.error(err); else console.log(res); };
feedfinder.feed('http://googleblog.blogspot.com/', log);
// http://googleblog.blogspot.com/feeds/posts/default
feedfinder.feeds('http://googleblog.blogspot.com/', log);
// [ 'http://googleblog.blogspot.com/feeds/posts/default',
//   'http://googleblog.blogspot.com/feeds/posts/default?alt=rss' ]

Todo List

  • RDF/RSS1.0 support
  • hAtom support