19 lines
528 B
JavaScript
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);
|
|
}); |