This package tracks a users tweets and outputs them with an event emitter.
Installation
Install tweettracker with npm
npm install tweettracker
Usage/Examples
A full example is availible in ./example.js
var tweettracker = TweetTracker(bearer_token);
var tracker = tweettracker.track("jack" , {
interval: 5000,
emitLatest: true,
});
tracker.on("tweet", function (tweet) {
console.log(tweet);
});
Object that is returned in the event handler
{
id: (STRING , tweet id),
text: (STRING , tweet text),
media: [ (STRING ARRAY, media url links) ],
name: (STRING , user name),
username: (STRING , user username),
profile_image_url: (STRING , user profile image url),
}
Contributing
Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.
Authors
License
MIT