twitstream

0.0.2 • Public • Published

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

Readme

Keywords

none

Package Sidebar

Install

npm i twitstream

Weekly Downloads

1

Version

0.0.2

License

MIT

Last publish

Collaborators

  • mmalecki