Feed Parser
It parses a Atom/RSS
feed and de-clutters the article objects
to return a simple array
of articles.
Installation
npm install feed-parser --save
Usage
var feedParser = ; /**It exposes a function called parse. @feedURL: The URL of the Atom/RSS feed, @callbackFunction: This function will be called with the array of articles after successful execution. Use a try-catch block to catch for any errors.*/ try feedParser; catcherror console
Output
It returns an array of articles which have five entries.
>[{title:"TITLE OF THE POST",description:"DESCRIPTION OF THE POST",date:"DATE OF PUBLISHING",image:"IMAGE URL FOR THUMBNAIL",author:"AUTHOR'S NAME"}, ...//Other entries]
Contributing
-
Clone this repository.
-
Install required modules.
cd feed-parsernpm install
-> Start Hacking.
Issue a Pull request to the development branch.
Github: Feed Parser