co-feedparser

co wrapper for feedparser package.

npm install co-feedparser
3 downloads in the last month

co-feedparser

co wrapper for feedparser package.

Quickstart

const feedParser = require('co-feedparser');

const meta = yield feedParser('https://github.com/blog/all.atom');
const articles = meta.articles;

Usage

feedParser (stream | uri, [options])

Uses feedparser on the given stream and fetches all articles at once.

Returns feedparser's meta data with an additional property articles.

Parameters

  • stream - A readable stream from which feedparser will read its data.

  • uri - A string can also be given instead of a stream which is a shortcut for request(uri).

  • options - Options used by feedparser.

  • options.requestOptions - When passing a uri instead of a stream, these options will be passed to request(uri, options).

Installation

$ npm install co-feedparser

Requirements

Node 0.11+, run with --harmony flag.

License

MIT

npm loves you