rss-braider/examples/run_filefeed.js
2014-12-26 14:47:48 -08:00

15 lines
381 B
JavaScript

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