0.0.1 • Published 6 years ago

@dobeerman/feedparser v0.0.1

Weekly downloads
1
License
MIT
Repository
github
Last release
6 years ago

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.