feedtitles

1.0.0 • Public • Published

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

Readme

Keywords

Package Sidebar

Install

npm i feedtitles

Weekly Downloads

1

Version

1.0.0

License

MIT

Last publish

Collaborators

  • tjkrusinski