Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/dimensionsoftware/node-rss-emitter
Small library that import RSS feeds and emit upon new entries
https://github.com/dimensionsoftware/node-rss-emitter
Last synced: about 1 month ago
JSON representation
Small library that import RSS feeds and emit upon new entries
- Host: GitHub
- URL: https://github.com/dimensionsoftware/node-rss-emitter
- Owner: DimensionSoftware
- License: mit
- Created: 2014-03-24T17:29:32.000Z (almost 11 years ago)
- Default Branch: master
- Last Pushed: 2015-01-03T00:07:58.000Z (almost 10 years ago)
- Last Synced: 2024-04-09T14:26:02.827Z (9 months ago)
- Language: CoffeeScript
- Homepage:
- Size: 117 KB
- Stars: 0
- Watchers: 4
- Forks: 6
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
node-rss-emitter
================Small module which import RSS feeds and emit events upon new entries
## install
With [npm](http://npmjs.org) do:
```
npm install rss-emitter
```## example
In JavaScript
```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
```coffee
RssEmitter = require 'rss-emitter'emitter = new RssEmitter 'feeds.db'
emitter.on 'item:new', (guid, item) ->
console.log "adding: #{guid}", itememitter.on 'item:skipped', (guid) ->
console.log "skipping: #{guid}"emitter.import 'http://thegamelab.tumblr.com/rss'
```