newznab-feedparser

2.0.2 • Public • Published

newznab-feedparser

Parses newznab rss feeds into a json object with a nzbs property that is an array of objects representing each nzb in the feed. Each parse function returns a promise resolving to the feed object.

Installation

npm install newznab-feedparser --save

Usage

// parse feed from url
parse.fromFeed('http://samplefeedurl.com/feed').then(function (feed) {
  console.log(feed);
});
// parse feed from file
parse.fromFile().then(function (feed) {
  console.log(feed);
});
// parse feed from string
 
// assuming xml is a string of xml
parse.fromString(xml).then(function (feed) {
  console.log(feed);
});

Readme

Keywords

Package Sidebar

Install

npm i newznab-feedparser

Weekly Downloads

0

Version

2.0.2

License

MIT

Last publish

Collaborators

  • jonhester