0.4.2 • Published 7 years ago

rss2rss v0.4.2

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

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