{"_id":"on-everything","_rev":"3-9fde6f68c76fd3e9f0c282f3fbde17b0","name":"on-everything","description":"Catch every event an EventEmitter publishes","dist-tags":{"latest":"1.0.0"},"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","tarball":"https://registry.npmjs.org/on-everything/-/on-everything-1.0.0.tgz","integrity":"sha512-06JbaO8+eityzH1DuNoEjcyNQ2ELNQw+NtAkqf1LGpx3HX4FJrBbMAtgyGcVz8Td74e88s6LwZWURMVu1hFgVg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDVv103tgUpquJU3nNQfMMcIeElo6o62azxKTbr5GSL5gIhAKLlqMeb+SD0xYFGX6QnB2Nc2N7sUi+fX5/7gs/OfA/V"}]},"maintainers":[{"name":"stephenplusplus","email":"sawchuk@gmail.com"}]}},"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","maintainers":[{"name":"stephenplusplus","email":"sawchuk@gmail.com"}],"time":{"modified":"2022-06-22T21:27:13.114Z","created":"2015-07-12T21:58:44.922Z","1.0.0":"2015-07-12T21:58:44.922Z"},"keywords":["stream","event","eventemitter","handler","wildcard","catchall"],"author":{"name":"Stephen Sawchuk","email":"sawchuk@gmail.com"},"license":"MIT","readmeFilename":"readme.md"}