1.0.19 • Published 7 years ago

feed-parser v1.0.19

Weekly downloads
1
License
MIT
Repository
github
Last release
7 years ago

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 = require('feed-parser');

/**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.parse(feedURL, callbackFunction); 
} catch(error) {
console.log(error)
}

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

  1. Clone this repository.

  2. Install required modules.

cd feed-parser
npm install

-> Start Hacking.

Issue a Pull request to the development branch.

Github: Feed Parser

1.0.19

7 years ago

1.0.18

7 years ago

1.0.17

7 years ago

1.0.16

7 years ago

1.0.15

7 years ago

1.0.14

7 years ago

1.0.13

7 years ago

1.0.12

7 years ago

1.0.11

7 years ago

1.0.10

7 years ago

1.0.9

7 years ago

1.0.8

7 years ago

1.0.7

7 years ago