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

rss2rss

Package Overview
Dependencies
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

rss2rss

server which hosts a filtered version of existing rss feeds

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

rss2rss

Express server which takes existing RSS feeds, applies transformations then re-hosts them.

bitHound Overall Score bitHound Dependencies bitHound Dev Dependencies bitHound Code

How to use

node app.js

Configuration

inside conf/ rename default.example.js to default.js

keydescription
portport to run the server on. defaults to 80
baseroute to host feeds on. defaults to root /
feedsarray of hosted feeds

Feed:

keydescription
urlurl to host the feed on
sourcesource of the rss feed to transform
filtersarray of filters

Filter:

keydescription
keykey on the rss feed items to apply the regex to
regexregex to run on the specified key
unescapeset to true if the regex matches need to be unescaped before applying transformations
multican there be multiple regex matches per feed item
replacetransformation functions to be called on each matched item. should return the new value. can be applied to link or value Function has two parameters: match - regex match, item - corresponding item from rss feed

TODO

  • command line arguments (log level, port, etc...)
  • ability to require module and transform rss feeds programmatically
  • unit tests
  • extra item key transformations
  • ability to combine multiple feeds
  • better logging

Keywords

rss

FAQs

Package last updated on 18 Mar 2017

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