# co-feedparser

> co wrapper for feedparser package.

Latest version **1.1.4** (published 2016-08-08) · MIT license · 0 weekly downloads

> **Deprecated.** This package is deprecated.

## Install

```sh
npm install co-feedparser
pnpm add co-feedparser
yarn add co-feedparser
bun add co-feedparser
```

## Health

**Score 10/100 (F)** — status: deprecated.

Negative: deprecated.

## Facts

| | |
|---|---|
| Version | 1.1.4 |
| Published | 2016-08-08 |
| First published | 2014-01-14 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 2 |
| Known vulnerabilities | 0 (+1 in 1 direct dependencies) |
| Install scripts | no |
| GitHub stars | 1 |
| Author | Marc Knaup |
| Maintainers | fluidsonic |
| Keywords | co, rss, atom, feed, rdf, xml, parser, generators |

## Links

- npm: https://www.npmjs.com/package/co-feedparser
- Repository: https://github.com/fluidsonic/co-feedparser
- Issues: https://github.com/fluidsonic/co-feedparser/issues
- npm.io page: https://npm.io/package/co-feedparser

## Dependencies (2)

- [request](https://npm.io/package/request.md) ~2.74.0
- [feedparser](https://npm.io/package/feedparser.md) 1.1.4

## Alternatives

- [babylon](https://npm.io/package/babylon.md) — 5.1M weekly downloads
- [csscolorparser](https://npm.io/package/csscolorparser.md) — 3.7M weekly downloads
- [expr-eval-fork](https://npm.io/package/expr-eval-fork.md) — 1.5M weekly downloads
- [@leeoniya/ufuzzy](https://npm.io/package/@leeoniya/ufuzzy.md) — 247.7K weekly downloads
- [xml-parser](https://npm.io/package/xml-parser.md) — 78.4K weekly downloads

## Recent versions

- 1.1.4 (latest) — 2016-08-08
- 0.16.5 — 2014-01-14

## README

co-feedparser
=============

[co](https://github.com/tj/co) wrapper for [feedparser](https://github.com/danmactough/node-feedparser) package.



Quickstart
----------

```javascript
const co         = require('co')
const feedParser = require('co-feedparser')

co(function*() {
    try {
        const meta = yield feedParser('https://github.com/blog/all.atom')
        const articles = meta.articles

        console.log(articles)
    }
    catch (error) {
        console.error(error.stack)
    }
})
```



Usage
--------

### feedParser (stream | uri, [options])

Uses [feedparser](https://github.com/danmactough/node-feedparser) on the given stream and fetches all articles at once.

Returns [feedparser's meta data](https://github.com/danmactough/node-feedparser#list-of-meta-properties) 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](https://github.com/danmactough/node-feedparser#options).

- `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 4.0.0 or newer



License
-------

MIT

---
_Source: https://npm.io/package/co-feedparser · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
