{"_id":"asyncemit","_rev":"11-7c4ec586acbcdafaeb676630c3851e96","name":"asyncemit","description":"Asynchronously emit event an event based on the arguments length.","dist-tags":{"latest":"3.0.1"},"versions":{"1.0.0":{"name":"asyncemit","version":"1.0.0","description":"Asynchronously emit event an event based on the arguments length.","main":"index.js","scripts":{"100%":"istanbul check-coverage --statements 100 --functions 100 --lines 100 --branches 100","test":"mocha test.js","watch":"mocha --watch test.js","coverage":"istanbul cover ./node_modules/.bin/_mocha -- test.js","test-travis":"istanbul cover node_modules/.bin/_mocha --report lcovonly -- test.js"},"repository":{"type":"git","url":"https://github.com/primus/asyncemit"},"keywords":["async","emit","event","emitter","eventemitter","asyncemit"],"author":{"name":"Arnout Kazemier"},"license":"MIT","bugs":{"url":"https://github.com/primus/asyncemit/issues"},"homepage":"https://github.com/primus/asyncemit","devDependencies":{"assume":"1.2.x","eventemitter3":"0.1.x","istanbul":"0.3.x","mocha":"2.2.x","pre-commit":"1.0.x"},"gitHead":"f036989783f08c7c4816bddb6b8f17961c7dbf9c","_id":"asyncemit@1.0.0","_shasum":"36ced9eb063b14246d0c3ff8355bfe0eb1b78a7e","_from":".","_npmVersion":"2.3.0","_nodeVersion":"0.10.35","_npmUser":{"name":"3rdeden","email":"npm@3rd-Eden.com"},"maintainers":[{"name":"3rdeden","email":"npm@3rd-Eden.com"}],"dist":{"shasum":"36ced9eb063b14246d0c3ff8355bfe0eb1b78a7e","tarball":"https://registry.npmjs.org/asyncemit/-/asyncemit-1.0.0.tgz","integrity":"sha512-YnMx4Up9PaiyHijbDGf5v1MfXI/L7j/8DDLeLLhBeW5KpM+PoLwArYXi9UXFg6WpOXTj3rmjtP7LCBvqsgQ3ow==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCSxUuOVK+Jx8uwtJAWM595xO2T0Mzyh8AhOwZIO0jBYwIgKbOL3lkMmQAh1OaMMGnRQZ8B77JOgYGsTjvA91wOXDA="}]}},"1.0.1":{"name":"asyncemit","version":"1.0.1","description":"Asynchronously emit event an event based on the arguments length.","main":"index.js","scripts":{"100%":"istanbul check-coverage --statements 100 --functions 100 --lines 100 --branches 100","test":"mocha test.js","watch":"mocha --watch test.js","coverage":"istanbul cover ./node_modules/.bin/_mocha -- test.js","test-travis":"istanbul cover node_modules/.bin/_mocha --report lcovonly -- test.js"},"repository":{"type":"git","url":"https://github.com/primus/asyncemit"},"keywords":["async","emit","event","emitter","eventemitter","asyncemit"],"author":{"name":"Arnout Kazemier"},"license":"MIT","bugs":{"url":"https://github.com/primus/asyncemit/issues"},"homepage":"https://github.com/primus/asyncemit","devDependencies":{"assume":"1.2.x","eventemitter3":"0.1.x","istanbul":"0.3.x","mocha":"2.2.x","pre-commit":"1.0.x"},"gitHead":"da3939eb15565e757ef6a976e7bfcd0fa9fd213c","_id":"asyncemit@1.0.1","_shasum":"ae1dce6c97d42acbcf7ba22ab6e362bfa047dceb","_from":".","_npmVersion":"2.3.0","_nodeVersion":"0.10.35","_npmUser":{"name":"3rdeden","email":"npm@3rd-Eden.com"},"maintainers":[{"name":"3rdeden","email":"npm@3rd-Eden.com"}],"dist":{"shasum":"ae1dce6c97d42acbcf7ba22ab6e362bfa047dceb","tarball":"https://registry.npmjs.org/asyncemit/-/asyncemit-1.0.1.tgz","integrity":"sha512-Plmk4sNfwTP6QljJPb5fV9iU/zxrx1e6GwQSatGJurfDHtSeZo356KLlMX7XVsdtTHIX0JypzQGZor3MZJKGKw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDeE5OWKKnH65a3yquLiWeTLd438K2zdlW9BF3wMWWoqQIgNKRNj+9U2gQmgtFch0sSHoc0bmLhwhOSl86J9sPmhgE="}]}},"1.0.2":{"name":"asyncemit","version":"1.0.2","description":"Asynchronously emit event an event based on the arguments length.","main":"index.js","scripts":{"100%":"istanbul check-coverage --statements 100 --functions 100 --lines 100 --branches 100","test":"mocha test.js","watch":"mocha --watch test.js","coverage":"istanbul cover ./node_modules/.bin/_mocha -- test.js","test-travis":"istanbul cover node_modules/.bin/_mocha --report lcovonly -- test.js"},"repository":{"type":"git","url":"https://github.com/primus/asyncemit"},"keywords":["async","emit","event","emitter","eventemitter","asyncemit"],"author":{"name":"Arnout Kazemier"},"license":"MIT","bugs":{"url":"https://github.com/primus/asyncemit/issues"},"homepage":"https://github.com/primus/asyncemit","devDependencies":{"assume":"1.2.x","eventemitter3":"0.1.x","istanbul":"0.3.x","mocha":"2.2.x","pre-commit":"1.0.x"},"gitHead":"5a9faada6f0968ad154ec0287c8995cd829e9fa3","_id":"asyncemit@1.0.2","_shasum":"e73c740bcd42ba3ae18ec377953ebfa09d0916a5","_from":".","_npmVersion":"2.3.0","_nodeVersion":"0.10.35","_npmUser":{"name":"3rdeden","email":"npm@3rd-Eden.com"},"maintainers":[{"name":"3rdeden","email":"npm@3rd-Eden.com"}],"dist":{"shasum":"e73c740bcd42ba3ae18ec377953ebfa09d0916a5","tarball":"https://registry.npmjs.org/asyncemit/-/asyncemit-1.0.2.tgz","integrity":"sha512-bv459FjTxmI96X0UWIfbHjMnyr4MF814sr8qrMVf2Q9zjxQkjgbEQtZSvUg9vPnIQB68tZw80qIt0Vts3UBrTA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIAaL3RFFB0odJHlhbATjLLfRifkvB4BO9hzwJ03QI34yAiA7og7lpPwY2TzI5eCF0XPrVEKubcrYQU4XhfpCVuTWbQ=="}]}},"2.0.0":{"name":"asyncemit","version":"2.0.0","description":"Asynchronously emit event an event based on the arguments length.","main":"index.js","scripts":{"100%":"istanbul check-coverage --statements 100 --functions 100 --lines 100 --branches 100","test":"mocha test.js","watch":"mocha --watch test.js","coverage":"istanbul cover ./node_modules/.bin/_mocha -- test.js","test-travis":"istanbul cover node_modules/.bin/_mocha --report lcovonly -- test.js"},"repository":{"type":"git","url":"https://github.com/primus/asyncemit"},"keywords":["async","emit","event","emitter","eventemitter","asyncemit"],"author":{"name":"Arnout Kazemier"},"license":"MIT","bugs":{"url":"https://github.com/primus/asyncemit/issues"},"homepage":"https://github.com/primus/asyncemit","devDependencies":{"assume":"1.2.x","eventemitter3":"1.0.x","istanbul":"0.3.x","mocha":"2.2.x","pre-commit":"1.0.x"},"gitHead":"35472b5df5357598ff0bf47d91395f1d49a7edba","_id":"asyncemit@2.0.0","_shasum":"ecb67fd9b8bbcec3b126381a9a0f6b7c4898281a","_from":".","_npmVersion":"2.7.5","_nodeVersion":"0.10.35","_npmUser":{"name":"3rdeden","email":"npm@3rd-Eden.com"},"maintainers":[{"name":"3rdeden","email":"npm@3rd-Eden.com"}],"dist":{"shasum":"ecb67fd9b8bbcec3b126381a9a0f6b7c4898281a","tarball":"https://registry.npmjs.org/asyncemit/-/asyncemit-2.0.0.tgz","integrity":"sha512-yp0TQhEVwBTkjjg+fZhsKr+IekfRPqSRcY88Gb83J61f4z9yP5PRv8Fh3s915cxrMgUUUZpydmCnWybCq6aERg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIGr5HT6tbSy7MIqY7GM0yvXDIcQEQNMO6ex9Aqtwpxp/AiEA20gfDhJGgVz7YAWYn1TvHGbTVsresZqkRQQnE2qdLqM="}]}},"3.0.0":{"name":"asyncemit","version":"3.0.0","description":"Asynchronously emit event an event based on the arguments length.","main":"index.js","scripts":{"100%":"istanbul check-coverage --statements 100 --functions 100 --lines 100 --branches 100","test":"mocha test.js","watch":"mocha --watch test.js","coverage":"istanbul cover ./node_modules/.bin/_mocha -- test.js","test-travis":"istanbul cover node_modules/.bin/_mocha --report lcovonly -- test.js"},"repository":{"type":"git","url":"https://github.com/primus/asyncemit"},"keywords":["async","emit","event","emitter","eventemitter","asyncemit"],"author":{"name":"Arnout Kazemier"},"license":"MIT","bugs":{"url":"https://github.com/primus/asyncemit/issues"},"homepage":"https://github.com/primus/asyncemit","devDependencies":{"assume":"1.2.x","istanbul":"0.3.x","mocha":"2.2.x","pre-commit":"1.0.x"},"peerDependencies":{"eventemitter3":">=1.1.0"},"gitHead":"5581c9c8b0ed1ef259f61d26a416747a8430ab32","_id":"asyncemit@3.0.0","_shasum":"10f4ca587caab23675ecd001e5358512a5780f5a","_from":".","_npmVersion":"2.7.5","_nodeVersion":"0.10.35","_npmUser":{"name":"3rdeden","email":"npm@3rd-Eden.com"},"maintainers":[{"name":"3rdeden","email":"npm@3rd-Eden.com"},{"name":"lpinca","email":"luigipinca@gmail.com"}],"dist":{"shasum":"10f4ca587caab23675ecd001e5358512a5780f5a","tarball":"https://registry.npmjs.org/asyncemit/-/asyncemit-3.0.0.tgz","integrity":"sha512-t7jwhEaWzEawGZhzGtIkGlU/qOCQ5WQat4M/2HjwdbZQ+BRKJVKKku9FWJCJTxSfuc7wP3cD1TWZofqenesJ3w==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCkQmggJ65AR0MYJOWJwgeFLHI/jebt57q8J/PWlOxRJQIhAIiu80og2t0/oTWceuQ9GvWSfjCLRppd5/x2xK4EZ3iL"}]}},"3.0.1":{"name":"asyncemit","version":"3.0.1","description":"Asynchronously emit event an event based on the arguments length.","main":"index.js","scripts":{"100%":"istanbul check-coverage --statements 100 --functions 100 --lines 100 --branches 100","test":"mocha test.js","watch":"mocha --watch test.js","coverage":"istanbul cover ./node_modules/.bin/_mocha -- test.js","test-travis":"istanbul cover node_modules/.bin/_mocha --report lcovonly -- test.js"},"repository":{"type":"git","url":"git+https://github.com/primus/asyncemit.git"},"keywords":["async","emit","event","emitter","eventemitter","asyncemit"],"author":{"name":"Arnout Kazemier"},"license":"MIT","bugs":{"url":"https://github.com/primus/asyncemit/issues"},"homepage":"https://github.com/primus/asyncemit","devDependencies":{"assume":"1.2.x","eventemitter3":"1.1.x","istanbul":"0.3.x","mocha":"2.2.x","pre-commit":"1.0.x"},"peerDependencies":{"eventemitter3":">=1.1.0"},"gitHead":"5e7407249a64f6951f4a62bd26beda37bc922649","_id":"asyncemit@3.0.1","_shasum":"cc3e0fe0da39b53cc15e5b3aa8616ea6a72bd599","_from":".","_npmVersion":"2.9.1","_nodeVersion":"0.12.2","_npmUser":{"name":"lpinca","email":"luigipinca@gmail.com"},"maintainers":[{"name":"3rdeden","email":"npm@3rd-Eden.com"},{"name":"lpinca","email":"luigipinca@gmail.com"}],"dist":{"shasum":"cc3e0fe0da39b53cc15e5b3aa8616ea6a72bd599","tarball":"https://registry.npmjs.org/asyncemit/-/asyncemit-3.0.1.tgz","integrity":"sha512-sVGuQSrkDjPJrnuMvWvltg4+UIO85qkDPGuSzVmj1LojoDR5DZPCVTSPRjYk1V0UPaeypFeMMoj22ZOG8egdyw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIEo1fWNo6AfRezd0PIJ3i/IK3kaCcclUe7+UmBmB3SAaAiEAxXHSTA+cNjWKaKlnxIZhEFi+F0drqMmMJDvoS+veOeY="}]}}},"readme":"# asyncemit\n\n[![Version npm](http://img.shields.io/npm/v/asyncemit.svg?style=flat-square)](http://browsenpm.org/package/asyncemit)[![Build Status](http://img.shields.io/travis/primus/asyncemit/master.svg?style=flat-square)](https://travis-ci.org/primus/asyncemit)[![Dependencies](https://img.shields.io/david/primus/asyncemit.svg?style=flat-square)](https://david-dm.org/primus/asyncemit)[![Coverage Status](http://img.shields.io/coveralls/primus/asyncemit/master.svg?style=flat-square)](https://coveralls.io/r/primus/asyncemit?branch=master)[![IRC channel](http://img.shields.io/badge/IRC-irc.freenode.net%23primus-00a8ff.svg?style=flat-square)](http://webchat.freenode.net/?channels=primus)\n\nThe `asyncemit` allows you to emit an event to an EventEmitter3 asynchronously.\n\n## Installation\n\nThe module is released in the public npm registry and can be installed using:\n\n```\nnpm install --save asyncemit\n```\n\n## Usage\n\nTo make this pattern work there are a couple of preconditions that need to be\nsatisfied:\n\n1. The method should be added on either a class that inherits from the\n   EventEmitter or on a new EventEmitter instance.\n2. The number of arguments expected by a listener function should match the\n   number of arguments passed to the `asyncemit` method excluding the event\n   name.\n\nSee the following example:\n\n```js\nvar EventEmitter = require('eventemitter3')\n  , asyncemit = require('asyncemit');\n\nvar ee = new EventEmitter();\nee.asyncemit = asyncemit;\n\n//\n// The next `foo` listeners will not be executed until `next` is called.\n//\nee.on('foo', function (arg, next) {\n  // Do things with arg?\n  next();\n});\n\n//\n// Still executed, but synchronously.\n//\nee.on('foo', function (arg) {\n\n});\n\nee.asyncemit('foo', 'bar', function (err) {\n  //\n  // The error argument will be set if one of the async listeners called the\n  // `next` callback with an `error` argument.\n  //\n});\n```\n\n## License\n\n[MIT](LICENSE)\n","maintainers":[{"email":"luigipinca@gmail.com","name":"lpinca"},{"email":"npm@3rd-Eden.com","name":"3rdeden"}],"time":{"modified":"2022-06-13T03:38:52.406Z","created":"2015-03-30T08:42:01.224Z","1.0.0":"2015-03-30T08:42:01.224Z","1.0.1":"2015-03-30T08:48:19.280Z","1.0.2":"2015-04-01T14:05:55.009Z","2.0.0":"2015-04-27T18:24:40.907Z","3.0.0":"2015-05-12T10:45:57.852Z","3.0.1":"2015-05-12T11:41:41.710Z"},"homepage":"https://github.com/primus/asyncemit","keywords":["async","emit","event","emitter","eventemitter","asyncemit"],"repository":{"type":"git","url":"git+https://github.com/primus/asyncemit.git"},"author":{"name":"Arnout Kazemier"},"bugs":{"url":"https://github.com/primus/asyncemit/issues"},"license":"MIT","readmeFilename":"README.md","users":{"nguru":true}}