Twitter streaming module which *I* like
JavaScript
Switch branches/tags
Nothing to show
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
example
lib
.gitignore
LICENSE
README.md
package.json

README.md

twitstream

Twitter streaming module which I like.

Usage

Creating a client

Create a client tracking nodejs search term.

var twitstream = require('twitstream');
var stream = twitstream({
  auth: {
    token: '...',
    tokenSecret: '...',
    consumerKey: '...',
    consumerSecret: '...'
  },
  track: ['hockey']
});

Read tweets

stream.on('readable', function () {
  var tweet = stream.read();
  console.log(JSON.stringify(tweet));
});