Share your code. npm Orgs help your team discover, share, and reuse code. Create a free org »

twitter-processor

1.0.5 • Public • Published

twitter-processor

Receive Tweets from the Twitter Streaming API and process them using custom processors.

Installation

npm install twitter-processor

Usage

var twitterProcessor = require('twitter-processor');

var processor = twitterProcessor.createProcessor({
	'debug' : true,
	'processor' : function(tweet,done) {
		tweet.addedKey = 'value';
		done();
	},
	'twitter' : {
		'consumer_key' : '',
		'consumer_secret' : '',
		'access_token_key' : '',
		'access_token_secret' : ''
	},
	'filter' : {
		'track' : 'Twitter'
	}
});

processor.on('tweet',function(tweet) {
	console.log(tweet.addedKey); //value
});

install

npm i twitter-processor

Downloadsweekly downloads

18

version

1.0.5

license

MIT

homepage

github.com

repository

Gitgithub

last publish

collaborators

  • avatar
  • avatar
  • avatar