rss-braider/examples/plugins.js

15 lines
397 B
JavaScript
Raw Normal View History

var RssBraider = require('../index'),
feeds = {};
feeds.filefeed = require("./config/feed_with_plugins").feed;
var braider_options = {
feeds : feeds,
indent : " "
};
var rss_braider = RssBraider.createClient(braider_options);
rss_braider.processFeed('filefeed', 'rss', function(err, data){
if (err) {
return console.log(err);
}
console.log(data);
});