UNPKG

syndication

Version:

A library written in NodeJS for Syndicating RSS & ATOM based feeds. It is a Promise based library which extends feedparser.

15 lines (13 loc) 393 B
var FeedParserPromise = require('../lib/index.js'); var feeds = new FeedParserPromise(); var fetchedFeeds = feeds.fetch('http://thing.live/rss'); var fetchedFeeds1 = feeds.fetch('http://rss.cnn.com/rss/edition.rss'); /*Using Promise.all() to Resolve*/ Promise.all([ fetchedFeeds, fetchedFeeds1 ]).then((val) => { console.log(val); }).catch((error) => { console.log(error) });