To handle XML and RSS from feed sources
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
src
test
.coveralls.yml
.eslintignore
.eslintrc.json
.gitignore
.travis.yml
LICENSE
README.md
index.js
package.json
reset.js

README.md

feed-reader

A node package for handling ATOM/RSS resources and normalize to JSON object.

NPM Build Status Coverage Status Dependency Status NSP Status

API & Usage

npm install feed-reader

This module provides only one method:

  • .parse(String feedURL)

In which, feedURL is the url to RSS or ATOM resource.

For example:

var reader = require('feed-reader');
reader.parse(SOME_RSS_URL);

Result is a Promise. View the example below for more detail:

var parse = require('feed-reader').parse;

let url = 'https://news.google.com/news/feeds?pz=1&cf=all&ned=us&hl=en&q=nodejs&output=rss';

parse(url).then((feed) => {
  console.log(feed);
}).catch((err) => {
  console.log(err);
}).finally(() => {
  console.log('Everything done');
});

Test

git clone https://github.com/ndaidong/feed-reader.git
cd feed-reader
npm install
npm test

License

The MIT License (MIT)