Combine multiple RSS feeds into one using node-feedparser and rss.
npm install rss-combiner
Usage
Combine feeds
var RSSCombiner = require('rss-combiner');
RSSCombiner(feedConfig)
.then(function (combinedFeed) {
var xml = combinedFeed.xml();
});
RSSCombiner(feedConfig, function (err, combinedFeed) {
if (err) {
console.error(err);
} else {
var xml = combinedFeed.xml();
}
});
feedOptions
See rss feedOptions
Plus 2 additional required options:
size
int the maximum number of entries to keep (most recently published will be kept)feeds
array url string array of feed_urls to retrieve content from