# node-feedparser

> feedparser not use stream

Latest version **1.0.1** (published 2015-05-28) · MIT license · 0 weekly downloads

## Install

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

## Health

**Score 23/100 (F)** — status: abandoned.

Positive: has types package; no vulnerabilities; high quality score.

Warnings: low downloads; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.1 |
| Published | 2015-05-28 |
| First published | 2015-05-28 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | separate (@types/node-feedparser) |
| Module format | CommonJS |
| Dependencies | 3 |
| Known vulnerabilities | 0 (+5 in 1 direct dependencies) |
| Install scripts | no |
| GitHub stars | 5 |
| Author | BiteBit |
| Maintainers | bitebit |
| Keywords | feedparser |

## Links

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

## Dependencies (3)

- [lodash](https://npm.io/package/lodash.md) ^3.9.3
- [feedparser](https://npm.io/package/feedparser.md) ^1.1.0
- [string-stream](https://npm.io/package/string-stream.md) 0.0.7

## Recent versions

- 1.0.1 (latest) — 2015-05-28

## README

# feedparser
This module depends on https://github.com/danmactough/node-feedparser
No need to care about stream, Just use xml feed content

---

## Install
```
npm install node-feedparser
```

---

## Usage
```coffeescript

request = require('request')
parser = require('node-feedparser')

request 'http://www.u148.net/rss/', (error, resp, body)->
  parser body, (error, ret)->
    console.log(error)
    console.log(ret)
```

---

## API
parser(xmlContent, [options], [callback])

xmlContent is String
  rss,feed,rdf xml content

options is Object or Function
  if Object
    options.siteTags Array
      select site tags
    options itemTags Array
      select article tags
  if Function
    callback

callback is Function
  callback Error, {site,items}

---

### List of meta properties

* title
* description
* link (website link)
* xmlurl (the canonical link to the feed, as specified by the feed)
* date (most recent update)
* pubdate (original published date)
* author
* language
* image (an Object containing `url` and `title` properties)
* favicon (a link to the favicon -- only provided by Atom feeds)
* copyright
* generator
* categories (an Array of Strings)

### List of article properties

* title
* description (frequently, the full article content)
* summary (frequently, an excerpt of the article content)
* link
* origlink (when FeedBurner or Pheedo puts a special tracking url in the `link` property, `origlink` contains the original link)
* permalink (when an RSS feed has a `guid` field and the `isPermalink` attribute is not set to `false`, `permalink` contains the value of `guid`)
* date (most recent update)
* pubdate (original published date)
* author
* guid (a unique identifier for the article)
* comments (a link to the article's comments section)
* image (an Object containing `url` and `title` properties)
* categories (an Array of Strings)
* source (an Object containing `url` and `title` properties pointing to the original source for an article; see the [RSS Spec](http://cyber.law.harvard.edu/rss/rss.html#ltsourcegtSubelementOfLtitemgt) for an explanation of this element)
* enclosures (an Array of Objects, each representing a podcast or other enclosure and having a `url` property and possibly `type` and `length` properties)
* meta (an Object containing all the feed meta properties; especially handy when using the EventEmitter interface to listen to `article` emissions)

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