feed-sub
Tracks rss/atom feeds and get notified when they are updated.
Install
npm install --save feed-sub
yarn add feed-sub
Usage
; const feed = 'https://github.com/facebook/react/tags.atom' 'https://github.com/facebook/jest/tags.atom'; // An item was updatedfeed; // handle stream errorfeed; feedstart;
Api
const feed = new FeedSub(urls, [options])
Create a new FeedSub
instance.
urls
- array - Array of urls.options.interval
- number - Number of seconds between two checks.
feed.start()
Start to stream.
feed.stop()
Stop the stream.