UNPKG

@rakh/rss-braider

Version:

Braid/aggregate/combine RSS feeds into a single RSS (or JSON) document. Optionally process through specified plugins.

19 lines (16 loc) 528 B
var RssBraider = require('../index'), feed_obj = {}; feed_obj.filefeed = require("./config/feed_with_plugins").feed; var braider_options = { feeds : feed_obj, indent : " ", plugins_directories : [__dirname + "/plugins/"], log_level : 'debug' }; var rss_braider = RssBraider.createClient(braider_options); rss_braider.processFeed('filefeed', 'rss', function(err, data){ if (err) { return console.log(err); } console.log(data); });