Drop in replacement for ntwitter that supplies fake data without the need for an Internet connection or OAuth keys. Intended to replace ntwitter in situations where you may have patchy connectivity (conference wifi, while travelling etc.) or when you don't want to/can't get lots of Twitter OAuth keys (interactive demos etc.). Not intended as a full replacement for ntwitter or for generating realistic test data - just as a temporary replacement in the aforementioned scenarios.
You can install ftwitter and its dependencies with npm: npm install ftwitter
.
I'm assuming assuming you already have an app that uses ntwitter. You can refer to ntwitter's readme for info on how to use it.
Once ftwitter is installed, simply change
require('ntwitter')
to
require('ftwitter')
in your app. Hopefully everything should work as it did before, but now with fake data.
Streaming.
Everything else.
Until I implement a 'faked' version of a given feature, I'll leave existing code as is, meaning it should function as ntwitter did.