Skip to content


Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Simple abstraction on top of ntwitter for working with a website feed.
branch: master


latest commit 54ab94e9d4
@timsavery authored
Failed to load latest commit information.
.gitignore add new tweets from stream to local cache
package.json increment version
twitterfeed.js woops

var TwitterFeed = new (require('twitterfeed'))({
  searchString: '@NodePhilly OR #nodephilly OR #nodejs', //
  filterString: 'nodephilly,nodejs', //
  cacheLimit: 3 // cycle tweets out of cache after limit is reached

var feed = TwitterFeed.start();

feed.on('tweet', function(tweet) {
    console.log('TWEET :: %s', JSON.stringify(tweet));

feed.on('error', function(error) {
    console.log('ERROR :: %s', JSON.stringify(error));

function printCachedTweets() {
    feed.getCachedTweets().forEach(function(tweet) {
        console.log('CACHED TWEET :: %s', JSON.stringify(tweet));

setTimeout(printCachedTweets, 3000);
Something went wrong with that request. Please try again.