{"_id":"event-emitter","_rev":"74788","name":"event-emitter","description":"Environment agnostic event emitter","dist-tags":{"latest":"0.3.5"},"maintainers":[{"name":"medikoo","email":""}],"time":{"modified":"2021-06-03T10:24:19.000Z","created":"2011-08-08T10:29:11.216Z","0.3.5":"2017-03-15T15:31:10.980Z","0.3.4":"2015-10-02T11:02:00.893Z","0.3.3":"2015-01-30T13:57:56.035Z","0.3.2":"2015-01-20T09:57:46.008Z","0.3.1":"2014-04-25T07:34:33.391Z","0.3.0":"2014-04-24T19:37:29.627Z","0.2.2":"2013-06-05T17:48:12.650Z","0.2.1":"2012-09-21T10:01:40.827Z","0.2.0":"2012-09-19T18:12:33.103Z","0.1.5":"2012-08-06T20:40:11.347Z","0.1.4":"2012-06-13T13:32:39.533Z","0.1.3":"2012-05-28T16:22:30.139Z","0.1.2":"2012-01-22T16:49:56.017Z","0.1.1":"2011-08-08T14:54:42.697Z","0.1.0":"2011-08-08T10:29:11.216Z"},"users":{"summer":true,"agmosoft":true,"magicismight":true,"filipedeschamps":true,"pressla":true,"subchen":true,"roscoe93":true,"jonatasnona":true,"kriswallsmith":true,"michaelchance":true,"davidchubbs":true,"piecioshka":true,"ceogavin":true,"erikvold":true,"xrush":true,"junya":true,"mystaticself":true,"theaklair":true,"anlijudavid":true,"shanewholloway":true,"parkerproject":true,"codeandcats":true,"mausimag":true,"bapinney":true,"codesleuth":true,"donecharlton":true,"evert-arias":true},"author":{"name":"Mariusz Nowak","email":"medyk@medikoo.com","url":"http://www.medikoo.com/"},"repository":{"type":"git","url":"git://github.com/medikoo/event-emitter.git"},"versions":{"0.3.5":{"name":"event-emitter","version":"0.3.5","description":"Environment agnostic event emitter","author":{"name":"Mariusz Nowak","email":"medyk@medikoo.com","url":"http://www.medikoo.com/"},"keywords":["event","events","trigger","observer","listener","emitter","pubsub"],"repository":{"type":"git","url":"git://github.com/medikoo/event-emitter.git"},"dependencies":{"es5-ext":"~0.10.14","d":"1"},"devDependencies":{"tad":"~0.2.7","xlint":"~0.2.2","xlint-jslint-medikoo":"~0.1.4"},"scripts":{"lint":"node node_modules/xlint/bin/xlint --linter=node_modules/xlint-jslint-medikoo/index.js --no-cache --no-stream","lint-console":"node node_modules/xlint/bin/xlint --linter=node_modules/xlint-jslint-medikoo/index.js --watch","test":"node ./node_modules/tad/bin/tad"},"license":"MIT","gitHead":"b951397b8f0d55fc7ae8aea7fa7699e48132a53d","bugs":{"url":"https://github.com/medikoo/event-emitter/issues"},"homepage":"https://github.com/medikoo/event-emitter#readme","_id":"event-emitter@0.3.5","_shasum":"df8c69eef1647923c7157b9ce83840610b02cc39","_from":".","_npmVersion":"4.1.2","_nodeVersion":"7.7.3","_npmUser":{"name":"medikoo","email":"medikoo+npm@medikoo.com"},"dist":{"shasum":"df8c69eef1647923c7157b9ce83840610b02cc39","size":7592,"noattachment":false,"key":"/event-emitter/-/event-emitter-0.3.5.tgz","tarball":"http://registry.cnpm.dingdandao.com/event-emitter/download/event-emitter-0.3.5.tgz"},"maintainers":[{"name":"medikoo","email":""}],"_npmOperationalInternal":{"host":"packages-18-east.internal.npmjs.com","tmp":"tmp/event-emitter-0.3.5.tgz_1489591870304_0.5845511830411851"},"directories":{},"publish_time":1489591870980,"_cnpm_publish_time":1489591870980,"_hasShrinkwrap":false},"0.3.4":{"name":"event-emitter","version":"0.3.4","description":"Environment agnostic event emitter","author":{"name":"Mariusz Nowak","email":"medyk@medikoo.com","url":"http://www.medikoo.com/"},"keywords":["event","events","trigger","observer","listener","emitter","pubsub"],"repository":{"type":"git","url":"git://github.com/medikoo/event-emitter.git"},"dependencies":{"es5-ext":"~0.10.7","d":"~0.1.1"},"devDependencies":{"tad":"~0.2.3","xlint":"~0.2.2","xlint-jslint-medikoo":"~0.1.4"},"scripts":{"lint":"node node_modules/xlint/bin/xlint --linter=node_modules/xlint-jslint-medikoo/index.js --no-cache --no-stream","lint-console":"node node_modules/xlint/bin/xlint --linter=node_modules/xlint-jslint-medikoo/index.js --watch","test":"node ./node_modules/tad/bin/tad"},"license":"MIT","gitHead":"adc27b543a53528b9af8a82f7c88db3292f0faa0","bugs":{"url":"https://github.com/medikoo/event-emitter/issues"},"homepage":"https://github.com/medikoo/event-emitter#readme","_id":"event-emitter@0.3.4","_shasum":"8d63ddfb4cfe1fae3b32ca265c4c720222080bb5","_from":".","_npmVersion":"2.14.4","_nodeVersion":"4.1.1","_npmUser":{"name":"medikoo","email":"medikoo+npm@medikoo.com"},"dist":{"shasum":"8d63ddfb4cfe1fae3b32ca265c4c720222080bb5","size":7468,"noattachment":false,"key":"/event-emitter/-/event-emitter-0.3.4.tgz","tarball":"http://registry.cnpm.dingdandao.com/event-emitter/download/event-emitter-0.3.4.tgz"},"maintainers":[{"name":"medikoo","email":""}],"directories":{},"publish_time":1443783720893,"_cnpm_publish_time":1443783720893,"_hasShrinkwrap":false},"0.3.3":{"name":"event-emitter","version":"0.3.3","description":"Environment agnostic event emitter","author":{"name":"Mariusz Nowak","email":"medyk@medikoo.com","url":"http://www.medikoo.com/"},"keywords":["event","events","trigger","observer","listener","emitter","pubsub"],"repository":{"type":"git","url":"git://github.com/medikoo/event-emitter.git"},"dependencies":{"es5-ext":"~0.10.5","d":"~0.1.1"},"devDependencies":{"tad":"~0.2.1","xlint":"~0.2.2","xlint-jslint-medikoo":"~0.1.2"},"scripts":{"lint":"node node_modules/xlint/bin/xlint --linter=node_modules/xlint-jslint-medikoo/index.js --no-cache --no-stream","lint-console":"node node_modules/xlint/bin/xlint --linter=node_modules/xlint-jslint-medikoo/index.js --watch","test":"node ./node_modules/tad/bin/tad"},"license":"MIT","gitHead":"13f184ab039e3559164691d3a6a3d6b8c84aed3e","bugs":{"url":"https://github.com/medikoo/event-emitter/issues"},"homepage":"https://github.com/medikoo/event-emitter","_id":"event-emitter@0.3.3","_shasum":"df8e806541c68ab8ff20a79a1841b91abaa1bee4","_from":".","_npmVersion":"1.4.28","_npmUser":{"name":"medikoo","email":"medikoo+npm@medikoo.com"},"maintainers":[{"name":"medikoo","email":""}],"dist":{"shasum":"df8e806541c68ab8ff20a79a1841b91abaa1bee4","size":7229,"noattachment":false,"key":"/event-emitter/-/event-emitter-0.3.3.tgz","tarball":"http://registry.cnpm.dingdandao.com/event-emitter/download/event-emitter-0.3.3.tgz"},"directories":{},"publish_time":1422626276035,"_cnpm_publish_time":1422626276035,"_hasShrinkwrap":false},"0.3.2":{"name":"event-emitter","version":"0.3.2","description":"Environment agnostic event emitter","author":{"name":"Mariusz Nowak","email":"medyk@medikoo.com","url":"http://www.medikoo.com/"},"keywords":["event","events","trigger","observer","listener","emitter","pubsub"],"repository":{"type":"git","url":"git://github.com/medikoo/event-emitter.git"},"dependencies":{"es5-ext":"~0.10.5","d":"~0.1.1"},"devDependencies":{"tad":"0.2","xlint":"~0.2.2","xlint-jslint-medikoo":"~0.1.2"},"scripts":{"lint":"node node_modules/xlint/bin/xlint --linter=node_modules/xlint-jslint-medikoo/index.js --no-cache --no-stream","lint-console":"node node_modules/xlint/bin/xlint --linter=node_modules/xlint-jslint-medikoo/index.js --watch","test":"node ./node_modules/tad/bin/tad"},"license":"MIT","gitHead":"85de248bb0d1a0e38d29d4feacb2cc6cd67a79d3","bugs":{"url":"https://github.com/medikoo/event-emitter/issues"},"homepage":"https://github.com/medikoo/event-emitter","_id":"event-emitter@0.3.2","_shasum":"a16acce48a6cddbafb494c1f8b46e8aa98758164","_from":".","_npmVersion":"1.4.28","_npmUser":{"name":"medikoo","email":"medikoo+npm@medikoo.com"},"maintainers":[{"name":"medikoo","email":""}],"dist":{"shasum":"a16acce48a6cddbafb494c1f8b46e8aa98758164","size":7221,"noattachment":false,"key":"/event-emitter/-/event-emitter-0.3.2.tgz","tarball":"http://registry.cnpm.dingdandao.com/event-emitter/download/event-emitter-0.3.2.tgz"},"directories":{},"publish_time":1421747866008,"_cnpm_publish_time":1421747866008,"_hasShrinkwrap":false},"0.3.1":{"name":"event-emitter","version":"0.3.1","description":"Environment agnostic event emitter","author":{"name":"Mariusz Nowak","email":"medyk@medikoo.com","url":"http://www.medikoo.com/"},"keywords":["event","events","trigger","observer","listener","emitter","pubsub"],"repository":{"type":"git","url":"git://github.com/medikoo/event-emitter.git"},"dependencies":{"es5-ext":"~0.10.2","d":"~0.1.1"},"devDependencies":{"tad":"~0.1.21"},"scripts":{"test":"node ./node_modules/tad/bin/tad"},"licence":"MIT","bugs":{"url":"https://github.com/medikoo/event-emitter/issues"},"homepage":"https://github.com/medikoo/event-emitter","_id":"event-emitter@0.3.1","dist":{"shasum":"1425ca9c5649a1a31ba835bd9dba6bfad3880238","size":7143,"noattachment":false,"key":"/event-emitter/-/event-emitter-0.3.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/event-emitter/download/event-emitter-0.3.1.tgz"},"_from":".","_npmVersion":"1.4.3","_npmUser":{"name":"medikoo","email":"medikoo+npm@medikoo.com"},"maintainers":[{"name":"medikoo","email":""}],"directories":{},"publish_time":1398411273391,"_cnpm_publish_time":1398411273391,"_hasShrinkwrap":false},"0.3.0":{"name":"event-emitter","version":"0.3.0","description":"Environment agnostic event emitter","author":{"name":"Mariusz Nowak","email":"medyk@medikoo.com","url":"http://www.medikoo.com/"},"keywords":["event","events","trigger","observer","listener","emitter","pubsub"],"repository":{"type":"git","url":"git://github.com/medikoo/event-emitter.git"},"dependencies":{"es5-ext":"~0.10.2","d":"~0.1.1"},"devDependencies":{"tad":"~0.1.21"},"scripts":{"test":"node ./node_modules/tad/bin/tad"},"licence":"MIT","bugs":{"url":"https://github.com/medikoo/event-emitter/issues"},"homepage":"https://github.com/medikoo/event-emitter","_id":"event-emitter@0.3.0","dist":{"shasum":"da1b2070b46fd3f75760d75906e79dacb810e004","size":7003,"noattachment":false,"key":"/event-emitter/-/event-emitter-0.3.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/event-emitter/download/event-emitter-0.3.0.tgz"},"_from":".","_npmVersion":"1.4.3","_npmUser":{"name":"medikoo","email":"medikoo+npm@medikoo.com"},"maintainers":[{"name":"medikoo","email":""}],"directories":{},"publish_time":1398368249627,"_cnpm_publish_time":1398368249627,"_hasShrinkwrap":false},"0.2.2":{"name":"event-emitter","version":"0.2.2","description":"Cross-environment event emitter","keywords":["event","events","trigger","observer","listener","emitter"],"author":{"name":"Mariusz Nowak","email":"medikoo+event-emitter@medikoo.com","url":"http://www.medikoo.com/"},"main":"lib","repository":{"type":"git","url":"git://github.com/medikoo/event-emitter.git"},"bugs":{"url":"https://github.com/medikoo/event-emitter/issues","email":"medikoo+event-emitter@medikoo.com"},"dependencies":{"es5-ext":"~0.9.2"},"scripts":{"test":"node ./node_modules/tad/bin/tad lib"},"devDependencies":{"tad":"~0.1.16"},"licence":"MIT","engines":{"node":">=0.4"},"readmeFilename":"README.md","_id":"event-emitter@0.2.2","dist":{"shasum":"c81e3724eb55407c5a0d5ee3299411f700f54291","size":7476,"noattachment":false,"key":"/event-emitter/-/event-emitter-0.2.2.tgz","tarball":"http://registry.cnpm.dingdandao.com/event-emitter/download/event-emitter-0.2.2.tgz"},"_from":".","_npmVersion":"1.2.25","_npmUser":{"name":"medikoo","email":"medikoo+npm@medikoo.com"},"maintainers":[{"name":"medikoo","email":""}],"directories":{},"publish_time":1370454492650,"_hasShrinkwrap":false,"_cnpm_publish_time":1370454492650},"0.2.1":{"name":"event-emitter","version":"0.2.1","description":"Cross-environment event emitter","keywords":["event","events","trigger","observer","listener","emitter"],"author":{"name":"Mariusz Nowak","email":"medikoo+event-emitter@medikoo.com","url":"http://www.medikoo.com/"},"main":"lib","repository":{"type":"git","url":"git://github.com/medikoo/event-emitter.git"},"bugs":{"email":"medikoo+event-emitter@medikoo.com","url":"https://github.com/medikoo/event-emitter/issues"},"dependencies":{"es5-ext":"0.9.x"},"scripts":{"test":"node ./node_modules/tad/bin/tad lib"},"devDependencies":{"tad":"0.1.x"},"optionalDependencies":{},"engines":{"node":">=0.4"},"_id":"event-emitter@0.2.1","dist":{"shasum":"bd89fc972dc494a6e39fda34b98860d6b6f55676","size":5888,"noattachment":false,"key":"/event-emitter/-/event-emitter-0.2.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/event-emitter/download/event-emitter-0.2.1.tgz"},"_npmVersion":"1.1.61","_npmUser":{"name":"medikoo","email":"medikoo+npm@medikoo.com"},"maintainers":[{"name":"medikoo","email":""}],"directories":{},"publish_time":1348221700827,"_hasShrinkwrap":false,"_cnpm_publish_time":1348221700827},"0.2.0":{"name":"event-emitter","version":"0.2.0","description":"Basic event emitter for Node.js and browser","keywords":["event","events","trigger","observer","listener","emitter"],"author":{"name":"Mariusz Nowak","email":"medikoo+event-emitter@medikoo.com","url":"http://www.medikoo.com/"},"main":"lib","repository":{"type":"git","url":"git://github.com/medikoo/event-emitter.git"},"bugs":{"email":"medikoo+event-emitter@medikoo.com","url":"https://github.com/medikoo/event-emitter/issues"},"dependencies":{"es5-ext":"0.9.x"},"scripts":{"test":"node ./node_modules/tad/bin/tad lib"},"devDependencies":{"tad":"0.1.x"},"optionalDependencies":{},"engines":{"node":">=0.4"},"_id":"event-emitter@0.2.0","dist":{"shasum":"05c4970f7506815caeb180a640205f7d9f51c3b3","size":5127,"noattachment":false,"key":"/event-emitter/-/event-emitter-0.2.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/event-emitter/download/event-emitter-0.2.0.tgz"},"_npmVersion":"1.1.61","_npmUser":{"name":"medikoo","email":"medikoo+npm@medikoo.com"},"maintainers":[{"name":"medikoo","email":""}],"directories":{},"publish_time":1348078353103,"_hasShrinkwrap":false,"_cnpm_publish_time":1348078353103},"0.1.5":{"name":"event-emitter","version":"0.1.5","description":"Basic event emitter for Node.js and browser","keywords":["event","events","trigger","observer","listener","emitter"],"author":{"name":"Mariusz Nowak","email":"medikoo+event-emitter@medikoo.com","url":"http://www.medikoo.com/"},"main":"lib","repository":{"type":"git","url":"git://github.com/medikoo/event-emitter.git"},"bugs":{"email":"medikoo+event-emitter@medikoo.com","url":"https://github.com/medikoo/event-emitter/issues"},"dependencies":{"es5-ext":"0.8.x"},"scripts":{"test":"node ./node_modules/tad/bin/tad lib"},"devDependencies":{"tad":"0.1.x"},"optionalDependencies":{},"engines":{"node":">=0.4"},"_id":"event-emitter@0.1.5","dist":{"shasum":"3bb38e8743edc42af06ad05881fbed93ed81cac0","size":2765,"noattachment":false,"key":"/event-emitter/-/event-emitter-0.1.5.tgz","tarball":"http://registry.cnpm.dingdandao.com/event-emitter/download/event-emitter-0.1.5.tgz"},"maintainers":[{"name":"medikoo","email":""}],"directories":{},"publish_time":1344285611347,"_hasShrinkwrap":false,"_cnpm_publish_time":1344285611347},"0.1.4":{"name":"event-emitter","version":"0.1.4","description":"Basic event emitter for Node.js and browser","keywords":["event","events","trigger","observer","listener","emitter"],"author":{"name":"Mariusz Nowak","email":"medikoo+event-emitter@medikoo.com","url":"http://www.medikoo.com/"},"main":"lib","repository":{"type":"git","url":"git://github.com/medikoo/event-emitter.git"},"bugs":{"email":"medikoo+event-emitter@medikoo.com","url":"https://github.com/medikoo/event-emitter/issues"},"dependencies":{"es5-ext":"0.8.x"},"scripts":{"test":"node ./node_modules/tad/bin/tad lib"},"devDependencies":{"tad":"0.1.x"},"optionalDependencies":{},"engines":{"node":">=0.4"},"_npmUser":{"name":"medikoo","email":"medikoo+npm@medikoo.com"},"_id":"event-emitter@0.1.4","_engineSupported":true,"_npmVersion":"1.1.24","_nodeVersion":"v0.6.19","_defaultsLoaded":true,"dist":{"shasum":"a472c361e450033be68130e505c033c360a72b7c","size":2722,"noattachment":false,"key":"/event-emitter/-/event-emitter-0.1.4.tgz","tarball":"http://registry.cnpm.dingdandao.com/event-emitter/download/event-emitter-0.1.4.tgz"},"maintainers":[{"name":"medikoo","email":""}],"directories":{},"publish_time":1339594359533,"_hasShrinkwrap":false,"_cnpm_publish_time":1339594359533},"0.1.3":{"name":"event-emitter","version":"0.1.3","description":"Basic event emitter for Node.js and browser","keywords":["event","events","trigger","observer","listener","emitter"],"author":{"name":"Mariusz Nowak","email":"medikoo+event-emitter@medikoo.com","url":"http://www.medikoo.com/"},"main":"lib","repository":{"type":"git","url":"git://github.com/medikoo/event-emitter.git"},"bugs":{"email":"medikoo+event-emitter@medikoo.com","url":"https://github.com/medikoo/event-emitter/issues"},"dependencies":{"es5-ext":"0.8.x"},"scripts":{"test":"node ./node_modules/tad/bin/tad lib"},"devDependencies":{"tad":"0.1.x"},"optionalDependencies":{},"engines":{"node":">=0.4"},"_npmUser":{"name":"medikoo","email":"medikoo+npm@medikoo.com"},"_id":"event-emitter@0.1.3","_engineSupported":true,"_npmVersion":"1.1.21","_nodeVersion":"v0.6.18","_defaultsLoaded":true,"dist":{"shasum":"b86eb318fbe02940c7a9da759ef22c8dd1adc9ba","size":2573,"noattachment":false,"key":"/event-emitter/-/event-emitter-0.1.3.tgz","tarball":"http://registry.cnpm.dingdandao.com/event-emitter/download/event-emitter-0.1.3.tgz"},"maintainers":[{"name":"medikoo","email":""}],"directories":{},"publish_time":1338222150139,"_hasShrinkwrap":false,"_cnpm_publish_time":1338222150139},"0.1.2":{"name":"event-emitter","version":"0.1.2","description":"Basic event emitter for Node.js and browser","keywords":["event","events","trigger","observer","listener","emitter"],"author":{"name":"Mariusz Nowak","email":"medikoo+event-emitter@medikoo.com","url":"http://www.medikoo.com/"},"main":"lib","repository":{"type":"git","url":"git://github.com/medikoo/event-emitter.git"},"bugs":{"email":"medikoo+event-emitter@medikoo.com","url":"https://github.com/medikoo/event-emitter/issues"},"dependencies":{"es5-ext":"0.7.x"},"scripts":{"test":"node ./node_modules/tad/bin/tad lib"},"devDependencies":{"tad":"0.1.x"},"_npmUser":{"name":"medikoo","email":"medikoo+npm@medikoo.com"},"_id":"event-emitter@0.1.2","optionalDependencies":{},"engines":{"node":"*"},"_engineSupported":true,"_npmVersion":"1.1.0-2","_nodeVersion":"v0.6.8","_defaultsLoaded":true,"dist":{"shasum":"11dece644cf59c2b2294ab18cd23d2492a7fc25a","size":2428,"noattachment":false,"key":"/event-emitter/-/event-emitter-0.1.2.tgz","tarball":"http://registry.cnpm.dingdandao.com/event-emitter/download/event-emitter-0.1.2.tgz"},"maintainers":[{"name":"medikoo","email":""}],"directories":{},"publish_time":1327250996017,"_hasShrinkwrap":false,"_cnpm_publish_time":1327250996017},"0.1.1":{"name":"event-emitter","version":"0.1.1","description":"Basic event emitter for Node.js and browser","keywords":["event","events","trigger","observer","listener","emitter"],"author":{"name":"Mariusz Nowak","email":"medikoo+event-emitter@medikoo.com","url":"http://www.medikoo.com/"},"main":"lib","repository":{"type":"git","url":"git://github.com/medikoo/event-emitter.git"},"bugs":{"email":"medikoo+event-emitter@medikoo.com","url":"https://github.com/medikoo/event-emitter/issues"},"dependencies":{"es5-ext":"0.6.x"},"scripts":{"test":"./node_modules/tad/bin/tad lib"},"devDependencies":{"tad":"0.1.x"},"_npmJsonOpts":{"file":"/Users/medikoo/.npm/event-emitter/0.1.1/package/package.json","wscript":false,"contributors":false,"serverjs":false},"_id":"event-emitter@0.1.1","engines":{"node":"*"},"_engineSupported":true,"_npmVersion":"1.0.23","_nodeVersion":"v0.5.4-pre","_defaultsLoaded":true,"dist":{"shasum":"6f9d52fdfef38fe2448bcd3e8e6d439981348604","size":1686,"noattachment":false,"key":"/event-emitter/-/event-emitter-0.1.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/event-emitter/download/event-emitter-0.1.1.tgz"},"maintainers":[{"name":"medikoo","email":""}],"directories":{},"publish_time":1312815282697,"_hasShrinkwrap":false,"_cnpm_publish_time":1312815282697},"0.1.0":{"name":"event-emitter","version":"0.1.0","description":"Basic event emitter for Node.js and browser","keywords":["event","events","trigger","observer","listener","emitter"],"author":{"name":"Mariusz Nowak","email":"medikoo+event-emitter@medikoo.com","url":"http://www.medikoo.com/"},"main":"lib","repository":{"type":"git","url":"git://github.com/medikoo/event-emitter.git"},"bugs":{"email":"medikoo+event-emitter@medikoo.com","url":"https://github.com/medikoo/event-emitter/issues"},"dependencies":{"es5-ext":"0.6.x"},"_npmJsonOpts":{"file":"/Users/medikoo/.npm/event-emitter/0.1.0/package/package.json","wscript":false,"contributors":false,"serverjs":false},"_id":"event-emitter@0.1.0","devDependencies":{},"engines":{"node":"*"},"_engineSupported":true,"_npmVersion":"1.0.23","_nodeVersion":"v0.5.4-pre","_defaultsLoaded":true,"dist":{"shasum":"58fc4e2883290f399f5ce6380c3d5e5910428056","size":1564,"noattachment":false,"key":"/event-emitter/-/event-emitter-0.1.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/event-emitter/download/event-emitter-0.1.0.tgz"},"scripts":{},"maintainers":[{"name":"medikoo","email":""}],"directories":{},"publish_time":1312799351216,"_hasShrinkwrap":false,"_cnpm_publish_time":1312799351216}},"readme":"# event-emitter\n## Environment agnostic event emitter\n\n### Installation\n\n\t$ npm install event-emitter\n\nTo port it to Browser or any other (non CJS) environment, use your favorite CJS bundler. No favorite yet? Try: [Browserify](http://browserify.org/), [Webmake](https://github.com/medikoo/modules-webmake) or [Webpack](http://webpack.github.io/)\n\n### Usage\n\n```javascript\nvar ee = require('event-emitter');\n\nvar MyClass = function () { /* .. */ };\nee(MyClass.prototype); // All instances of MyClass will expose event-emitter interface\n\nvar emitter = new MyClass(), listener;\n\nemitter.on('test', listener = function (args) {\n  // … react to 'test' event\n});\n\nemitter.once('test', function (args) {\n  // … react to first 'test' event (invoked only once!)\n});\n\nemitter.emit('test', arg1, arg2/*…args*/); // Two above listeners invoked\nemitter.emit('test', arg1, arg2/*…args*/); // Only first listener invoked\n\nemitter.off('test', listener);              // Removed first listener\nemitter.emit('test', arg1, arg2/*…args*/); // No listeners invoked\n```\n### Additional utilities\n\n#### allOff(obj) _(event-emitter/all-off)_\n\nRemoves all listeners from given event emitter object\n\n#### hasListeners(obj[, name]) _(event-emitter/has-listeners)_\n\nWhether object has some listeners attached to the object.\nWhen `name` is provided, it checks listeners for specific event name\n\n```javascript\nvar emitter = ee();\nvar hasListeners = require('event-emitter/has-listeners');\nvar listener = function () {};\n\nhasListeners(emitter); // false\n\nemitter.on('foo', listener);\nhasListeners(emitter); // true\nhasListeners(emitter, 'foo'); // true\nhasListeners(emitter, 'bar'); // false\n\nemitter.off('foo', listener);\nhasListeners(emitter, 'foo'); // false\n```\n\n#### pipe(source, target[, emitMethodName]) _(event-emitter/pipe)_\n\nPipes all events from _source_ emitter onto _target_ emitter (all events from _source_ emitter will be emitted also on _target_ emitter, but not other way).  \nReturns _pipe_ object which exposes `pipe.close` function. Invoke it to close configured _pipe_.  \nIt works internally by redefinition of `emit` method, if in your interface this method is referenced differently, provide its name (or symbol) with third argument.\n\n#### unify(emitter1, emitter2) _(event-emitter/unify)_\n\nUnifies event handling for two objects. Events emitted on _emitter1_ would be also emitted on _emitter2_, and other way back.  \nNon reversible.\n\n```javascript\nvar eeUnify = require('event-emitter/unify');\n\nvar emitter1 = ee(), listener1, listener3;\nvar emitter2 = ee(), listener2, listener4;\n\nemitter1.on('test', listener1 = function () { });\nemitter2.on('test', listener2 = function () { });\n\nemitter1.emit('test'); // Invoked listener1\nemitter2.emit('test'); // Invoked listener2\n\nvar unify = eeUnify(emitter1, emitter2);\n\nemitter1.emit('test'); // Invoked listener1 and listener2\nemitter2.emit('test'); // Invoked listener1 and listener2\n\nemitter1.on('test', listener3 = function () { });\nemitter2.on('test', listener4 = function () { });\n\nemitter1.emit('test'); // Invoked listener1, listener2, listener3 and listener4\nemitter2.emit('test'); // Invoked listener1, listener2, listener3 and listener4\n```\n\n### Tests [![Build Status](https://travis-ci.org/medikoo/event-emitter.png)](https://travis-ci.org/medikoo/event-emitter)\n\n\t$ npm test\n","_attachments":{},"homepage":"https://github.com/medikoo/event-emitter#readme","bugs":{"url":"https://github.com/medikoo/event-emitter/issues"},"license":"MIT"}