{"_id":"on-everything","_rev":"296509","name":"on-everything","description":"Catch every event an EventEmitter publishes","dist-tags":{"latest":"1.0.0"},"maintainers":[{"name":"stephenplusplus","email":""}],"time":{"modified":"2021-06-03T18:58:31.000Z","created":"2015-07-12T21:58:44.922Z","1.0.0":"2015-07-12T21:58:44.922Z"},"users":{},"author":{"name":"Stephen Sawchuk","email":"sawchuk@gmail.com"},"versions":{"1.0.0":{"name":"on-everything","version":"1.0.0","description":"Catch every event an EventEmitter publishes","main":"index.js","scripts":{"test":"mocha test --timeout 5000"},"files":["index.js","license"],"keywords":["stream","event","eventemitter","handler","wildcard","catchall"],"author":{"name":"Stephen Sawchuk","email":"sawchuk@gmail.com"},"license":"MIT","dependencies":{"stubs":"^2.0.0"},"devDependencies":{"mocha":"^2.2.5","request":"^2.58.0"},"gitHead":"f0f00713ff578bd420ccb39fea774926dad03eaf","_id":"on-everything@1.0.0","_shasum":"fffe3bdd2d8012ae5bc51dbf8a791b768d7724b1","_from":".","_npmVersion":"2.11.2","_nodeVersion":"0.12.5","_npmUser":{"name":"stephenplusplus","email":"sawchuk@gmail.com"},"dist":{"shasum":"fffe3bdd2d8012ae5bc51dbf8a791b768d7724b1","size":1675,"noattachment":false,"key":"/on-everything/-/on-everything-1.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/on-everything/download/on-everything-1.0.0.tgz"},"maintainers":[{"name":"stephenplusplus","email":""}],"directories":{},"publish_time":1436738324922,"_cnpm_publish_time":1436738324922,"_hasShrinkwrap":false}},"readme":"# on-everything\n\n> Catch every event an [EventEmitter](https://nodejs.org/api/events.html) publishes.\n\n## Use\n\n```sh\n$ npm install --save on-everything\n```\n```js\nvar onEverything = require('on-everything');\n```\n\n## Example\n\n```js\nvar onEverything = require('on-everything');\nvar request = require('request');\n\nonEverything(request('http://yahoo.com'), function (eventName) {\n  console.log(eventName);\n});\n```\n```sh\n$ node ./\nrequest\nsocket\nredirect\nrequest\nsocket\nresponse\ncomplete\nend\n```\n\n## ee = onEverything(ee, onEvent);\n\n\n### ee\n\nType: [`EventEmitter`](https://nodejs.org/api/events.html)\n\nThis is returned from the function to allow chaining.\n\n\n### onEvent(eventName, [...])\n\nType: `Function`\n\nCalled on every emitted event.\n\n#### eventName\n\nName of the event emitted.\n\n#### ...\n\nThe original arguments passed to the event.\n\n\n## Related\n\n- [stream-forward](https://github.com/stephenplusplus/stream-forward)\n","_attachments":{},"license":"MIT"}