rss-braider/examples/simple.js

17 lines
448 B
JavaScript
Raw Normal View History

2014-12-26 22:47:48 +00:00
var RssBraider = require('../index'),
feed_obj = {};
feed_obj.filefeed = require("./config/feed").feed;
2014-12-26 22:47:48 +00:00
var braider_options = {
feeds : feed_obj,
indent : " ",
date_sort_order : "desc" // Newest first
2014-12-26 22:47:48 +00:00
};
var rss_braider = RssBraider.createClient(braider_options);
rss_braider.processFeed('filefeed', 'rss', function(err, data){
if (err) {
return console.log(err);
}
console.log(data);
});