twitter-sentiment
Node readable stream to track twitter sentiment via the streaming endpoint
Installation
npm i twitter-sentiment
Set environment variables for your twitter app (create on Twitter):
export TWITTER_CONSUMER_KEY="..."export TWITTER_CONSUMER_SECRET="..."export TWITTER_CONSUMER_ACCESS_TOKEN="..."export TWITTER_CONSUMER_ACCESS_KEY="..."
Usage
const twitterSentiment = const Writable = Writable const readable = readable // to end the twitter stream connect, emit destroyreadable