Catch every event an EventEmitter publishes.
$ npm install --save on-everything
var onEverything = require('on-everything');
var onEverything = require('on-everything');
var request = require('request');
onEverything(request('http://yahoo.com'), function (eventName) {
console.log(eventName);
});
$ node ./
request
socket
redirect
request
socket
response
complete
end
Type: EventEmitter
This is returned from the function to allow chaining.
Type: Function
Called on every emitted event.
Name of the event emitted.
The original arguments passed to the event.