Skip to content
master
Go to file
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
src
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

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)

You can’t perform that action at this time.