Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Small library that import RSS feeds and emit upon new entries
CoffeeScript
branch: master

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
lib
src
.gitignore
Cakefile
LICENSE
README.md
package.json

README.md

node-rss-emitter

Small module which import RSS feeds and emit events upon new entries

install

With npm do:

npm install rss-emitter

example

In JavaScript

var RssEmitter = require('rss-emitter');

var emitter = new RssEmitter('feeds.db');

emitter.on('item:new', function(guid, item) {
   return console.log("adding: " + guid, item);
});

emitter.on('item:skipped', function(guid) {
   return console.log("skipping: " + guid);
});

emitter.import('http://thegamelab.tumblr.com/rss');

In CoffeeScript

RssEmitter = require 'rss-emitter'

emitter = new RssEmitter 'feeds.db'

emitter.on 'item:new', (guid, item) ->
  console.log "adding: #{guid}", item

emitter.on 'item:skipped', (guid) ->
  console.log "skipping: #{guid}"

emitter.import 'http://thegamelab.tumblr.com/rss'
Something went wrong with that request. Please try again.