Track tons of feeds and receive events for every new item published with this super RSS News Feed aggregator.
This is a fully functional module, but its source code and repository are also a super complete tutorial, covering:
- What to do first when creating a module from scratch
- How to manage your module in Github and npm
- How to transpile your ES6 code into ES5
- How to create automated unit and integration tests
- How to integrate them with Travis CI and make the build break if tests didn't pass
- How to automatically test your module against various versions of Node.js
- How to setup a code coverage tool and keep 100% coverage
- How to integrate the coverage results with Code Climate
- How to configure linting tools to make your code base consistent
- How to deploy to Github and npm with tags and releases
If you're afraid to read the source code of the modules you use or to create your first module, this is the best chance you have to break this barrier :)
- Supports Node.js
0.10.x
,0.12.x
,4.x
,5.x
, and@stable
- 100% code coverage with unit and integration tests
- Simple interface
- Automatically manages feed history memory
- Written in ES6
$ npm install rss-feed-emitter
let RssFeedEmitter = require('rss-feed-emitter');
let feeder = new RssFeedEmitter();
let feeder = new RssFeedEmitter({ userAgent: 'Your UA string' });
feeder.add({
url: 'http://www.nintendolife.com/feeds/news',
refresh: 2000
});
Default refresh value is 60 seconds
feeder.on('new-item', function(item) {
console.log(item);
})
feeder.list();
feeder.remove('http://www.nintendolife.com/feeds/news');
feeder.destroy();
This will remove all feeds from the instance