Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
var Twitter = module.exports = function (keys, param1, param2) {
var self = this;
var objectMode = true;
var options = {};
if (utils.isBoolean(param1)) {
objectMode = param1;
}
if (utils.isObject(param1)) {
options = param1;
}
if (utils.isObject(param2)) {
options = param2;
}
this.connection = new Connection(keys, options);
this.streamEndpoint = 'statuses/filter';
this.streamParams = null;
Readable.call(this, {objectMode: objectMode});