Socket
Socket
Sign inDemoInstall

rss2rss

Package Overview
Dependencies
131
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    rss2rss

server which hosts a filtered version of existing rss feeds


Version published
Weekly downloads
0
Maintainers
1
Created
Weekly downloads
 

Readme

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

FAQs

Last updated on 18 Mar 2017

Did you know?

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc