0.0.1 • Published 6 years ago
@dobeerman/feedparser v0.0.1
feedparser
RSS and Atom parser
Installation
$ npm install dobeerman/feedparser
or using yarn
:
$ yarn add dobeerman/feedparser
Usage
const feed = new FeedParser(urls, {
flatten: true, // to be flatten instead of Array of Arrays
sort: { key: 'title', order: 'asc' }
})
feed
.parse() // Just call parse()
.then((result) => result.map((el) => console.log(el.title)))
.catch((e) => console.log(e))
Check the example to get more info.
0.0.1
6 years ago