rss-combiner

    0.0.5 • Public • Published

    rss-combiner Build Status

    Combine multiple RSS feeds into one using node-feedparser and rss.

    npm install rss-combiner
    

    Usage

    Combine feeds

    var RSSCombiner = require('rss-combiner');
     
    // Promise usage
    RSSCombiner(feedConfig)
      .then(function (combinedFeed) {
        var xml = combinedFeed.xml();
      });
     
    // Node callback usage
    RSSCombiner(feedConfig, function (err, combinedFeed) {
      if (err) {
        console.error(err);
      } else {
        var xml = combinedFeed.xml();
      }
    });
    feedOptions

    See rss feedOptions

    Additional 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
    • softFail optional boolean if true failing to retrieve a single feed will not result in an error being thrown (default value: false)
    Example feedOptions

    Creates a new feed with a maximum of 20 entries containing the latest entries from 2 RSS feeds.

    var feedConfig = {
      title: 'Tech news from Guardian and BBC',
      size: 20,
      feeds: [
        'http://feeds.bbci.co.uk/news/technology/rss.xml',
        'https://www.theguardian.com/uk/technology/rss'
      ],
      pubDate: new Date()
    };

    Install

    npm i rss-combiner

    DownloadsWeekly Downloads

    8

    Version

    0.0.5

    License

    ISC

    Last publish

    Collaborators

    • awocallaghan