You're Invited:Meet the Socket Team at BlackHat and DEF CON in Las Vegas, Aug 4-6.RSVP
Socket
Book a DemoInstallSign in
Socket

rss-xml-loader

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

rss-xml-loader

XML Loader to process and wrap RSS Feeds

0.2.0
latest
npmnpm
Version published
Weekly downloads
0
Maintainers
1
Weekly downloads
 
Created
Source

RSS XML Loader

A set of simple methods to transform an RSS Feed XML string to rss-spec objects.

Example

See examples folder.

var RssXmlTransformer = require('../dist/').default;
var feedString = '<?xml version="1.0"?>' +
'<rss>' +
'  <channel>' +
'    <title>RssXmlTransformer Sample Feed</title>' +
'    <description>Description</description>' +
'    <link>http://www.example.com/</link>' +
'  </channel>' +
'</rss>';
var transformer = new RssXmlTransformer();
transformer.transformFromString(feedString)
  .then(function(rssFeed) {
    console.dir(rssFeed);
  })
  .catch(function(err) {
    console.log('Error', err);
  });

TODO

  • rss-spec to XML
  • Strict and passive modes. Simply lists oddities or malphormed sections, but doesn't halt execution with an error.

Keywords

rss

FAQs

Package last updated on 25 Jul 2016

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts