npm.io
0.0.2 • Published 12 years ago

twitstream

Licence
MIT
Version
0.0.2
Deps
2
Vulns
0
Weekly
0
Stars
2

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));
});