Rinser/node_modules/rss-braider/examples/use_plugins.js
2015-07-20 14:42:07 +01:00

19 lines
528 B
JavaScript

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);
});