1.0.0 • Published 10 years ago

feedtitles v1.0.0

Weekly downloads
1
License
MIT
Repository
github
Last release
10 years ago

Feed Titles

Installation

$ npm install feedtitles

Usage

var Titles = require('feedtitles');

var titles = new Titles('http://feeds.reuters.com/Reuters/worldNews');

titles.on('title', function(title){
  // string title
});

titles.on('titles', function(titleArray){
  console.log(titleArray);
  // a list of title node text from the rss feed
});

// give me moar!
// calling `Titles#feed` will load up a new feed and spit things out again
titles.feed('http://feeds.reuters.com/Reuters/domesticNews');

Tests

Tests use mocha

$ npm test
1.0.0

10 years ago