feed-reader
A node package for handling ATOM/RSS resources and normalize to JSON object.
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)