Provides a stream interface for the Twitter stream API.
$ npm install flow-from-twitterFor use in the browser, use browserify.
var stream = require( 'flow-from-twitter' );...TODO.
To set the stream options,
var opts = {
};
// TODO: demo useReturns a reusable stream factory. The factory method ensures streams are configured identically by using the same set of provided options.
var opts = {
};
var factory = require( 'flow-from-twitter' ).factory( opts );
// TODO: demo useThis method is a convenience function to create streams which always operate in objectMode. The method will always override the objectMode option in options.
var stream = require( 'flow-from-twitter' ).objectMode;
// TODO: demo usevar createStream = require( 'flow-from-twitter' );
// Create a readable stream:
var readableStream = createStream();
// Pipe the data...
readableStream.pipe( process.stdout );To run the example code from the top-level application directory,
$ node ./examples/index.jsUnit tests use the Mocha test framework with Chai assertions. To run the tests, execute the following command in the top-level application directory:
$ make testAll new feature development should have corresponding unit tests to validate correct functionality.
This repository uses Istanbul as its code coverage tool. To generate a test coverage report, execute the following command in the top-level application directory:
$ make test-covIstanbul creates a ./reports/coverage directory. To access an HTML version of the report,
$ make view-covCopyright © 2015. Athan Reines.