rss-braider/examples/plugins.js
2015-02-10 17:19:40 -08:00

17 lines
408 B
JavaScript

var RssBraider = require('../index'),
feed_obj = {};
feed_obj.filefeed = require("./config/feed_with_plugins").feed;
var braider_options = {
feeds : feed_obj,
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);
});