{"_id":"emitter-component","maintainers":[{"email":"sindresorhus@gmail.com","name":"sindresorhus"}],"dist-tags":{"latest":"2.0.0"},"description":"Event emitter","readme":"# Emitter\n\n  Event emitter component.\n\n## Installation\n\n```\n$ component install component/emitter\n```\n\n## API\n\n### Emitter(obj)\n\n  The `Emitter` may also be used as a mixin. For example\n  a \"plain\" object may become an emitter, or you may\n  extend an existing prototype.\n\n  As an `Emitter` instance:\n\n```js\nvar Emitter = require('emitter');\nvar emitter = new Emitter;\nemitter.emit('something');\n```\n\n  As a mixin:\n\n```js\nvar Emitter = require('emitter');\nvar user = { name: 'tobi' };\nEmitter(user);\n\nuser.emit('im a user');\n```\n\n  As a prototype mixin:\n\n```js\nvar Emitter = require('emitter');\nEmitter(User.prototype);\n```\n  \n### Emitter#on(event, fn)\n\n  Register an `event` handler `fn`.\n\n### Emitter#once(event, fn)\n\n  Register a single-shot `event` handler `fn`,\n  removed immediately after it is invoked the\n  first time.\n\n### Emitter#off(event, fn)\n\n  * Pass `event` and `fn` to remove a listener.\n  * Pass `event` to remove all listeners on that event.\n  * Pass nothing to remove all listeners on all events.\n\n### Emitter#emit(event, ...)\n\n  Emit an `event` with variable option args.\n\n### Emitter#listeners(event)\n\n  Return an array of callbacks, or an empty array.\n\n### Emitter#hasListeners(event)\n\n  Check if this emitter has `event` handlers.\n","repository":{"type":"git","url":"git+https://github.com/sindresorhus/component-emitter.git"},"users":{"conradz":true,"penglyu":true,"princetoad":true},"bugs":{"url":"https://github.com/sindresorhus/component-emitter/issues"},"versions":{"0.0.6":{"name":"emitter-component","description":"Event emitter","version":"0.0.6","devDependencies":{"mocha":"*","should":"*"},"component":{"scripts":{"emitter":"index.js"}},"_id":"emitter-component@0.0.6","dist":{"shasum":"c155d82f6d0c01b5bee856d58074a4cc59795bca","tarball":"https://nexus.nspop.dk/nexus/repository/nsp-npm/emitter-component/-/emitter-component-0.0.6.tgz","integrity":"sha512-n2jptjd4U6F7sUxYJFrTp8m5BYhT/TNE5RyhNKsN9AWlIUqSxC+khjR8rtfd6bVQ0IccjB1lYPQ91R09ADlsUg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDIr+pT3EwIdumyIkKZIFj4oNMB9mzM+wsjXMza3PGZoQIgGVNfvje9MoT2ZD02QfNpdXTUM16sy1JgCsXtTJ32pdo="}]},"_npmVersion":"1.1.61","_npmUser":{"name":"tjholowaychuk","email":"tj@vision-media.ca"},"maintainers":[{"name":"tjholowaychuk","email":"tj@vision-media.ca"}],"directories":{}},"1.1.2":{"name":"emitter-component","description":"Event emitter","version":"1.1.2","funding":"https://github.com/sponsors/sindresorhus","devDependencies":{"mocha":"*","should":"*"},"component":{"scripts":{"emitter":"index.js"}},"repository":{"type":"git","url":"git+https://github.com/sindresorhus/component-emitter.git"},"gitHead":"a5631018f6984f585b44c0ac7982b0ff9686086f","bugs":{"url":"https://github.com/sindresorhus/component-emitter/issues"},"homepage":"https://github.com/sindresorhus/component-emitter#readme","_id":"emitter-component@1.1.2","_nodeVersion":"20.9.0","_npmVersion":"9.2.0","dist":{"integrity":"sha512-QdXO3nXOzZB4pAjM0n6ZE+R9/+kPpECA/XSELIcc54NeYVnBqIk+4DFiBgK+8QbV3mdvTG6nedl7dTYgO+5wDw==","shasum":"d65af5833dc7c682fd0ade35f902d16bc4bad772","tarball":"https://nexus.nspop.dk/nexus/repository/nsp-npm/emitter-component/-/emitter-component-1.1.2.tgz","fileCount":8,"unpackedSize":10468,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQD8Z0aM1+T0ml/8Sbo/yq2hiClop0SKvvV8qEptkpxeXAIgMYuGjUjYTImoYxPpP0uUhKLwzvEDeBW3IGjkHNgiaY8="}]},"_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"directories":{},"maintainers":[{"name":"coreh","email":"thecoreh@gmail.com"},{"name":"swatinem","email":"arpad.borsos@googlemail.com"},{"name":"anthonyshort","email":"antshort@gmail.com"},{"name":"ianstormtaylor","email":"ian@ianstormtaylor.com"},{"name":"cristiandouce","email":"cristiandouce@gmail.com"},{"name":"stagas","email":"gstagas@gmail.com"},{"name":"rauchg","email":"rauchg@gmail.com"},{"name":"kelonye","email":"kelonyemitchel@gmail.com"},{"name":"amasad","email":"amjad.masad@gmail.com"},{"name":"juliangruber","email":"julian@juliangruber.com"},{"name":"dominicbarnes","email":"dominic@segment.com"},{"name":"mattmueller","email":"mattmuelle@gmail.com"},{"name":"tootallnate","email":"nathan@tootallnate.net"},{"name":"yields","email":"yields@icloud.com"},{"name":"retrofox","email":"rdsuarez@gmail.com"},{"name":"sindresorhus","email":"sindresorhus@gmail.com"},{"name":"tjholowaychuk","email":"tj@vision-media.ca"},{"name":"jonathanong","email":"jonathanrichardong@gmail.com"},{"name":"jongleberry","email":"jonathanrichardong@gmail.com"},{"name":"forbeslindesay","email":"forbes@lindesay.co.uk"},{"name":"calvinfo","email":"calvin@calv.info"},{"name":"defunctzombie","email":"shtylman@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/emitter-component_1.1.2_1700168036045_0.5101406033363802"},"_hasShrinkwrap":false},"2.0.0":{"name":"emitter-component","description":"Event emitter","version":"2.0.0","funding":"https://github.com/sponsors/sindresorhus","devDependencies":{"mocha":"*","should":"*"},"component":{"scripts":{"emitter":"index.js"}},"repository":{"type":"git","url":"git+https://github.com/sindresorhus/component-emitter.git"},"gitHead":"a5631018f6984f585b44c0ac7982b0ff9686086f","bugs":{"url":"https://github.com/sindresorhus/component-emitter/issues"},"homepage":"https://github.com/sindresorhus/component-emitter#readme","_id":"emitter-component@2.0.0","_nodeVersion":"20.9.0","_npmVersion":"9.2.0","dist":{"integrity":"sha512-hDhjUgoirJYau02tKkiiWWRbGZb8QucNdwEsglBUrhhs7/LfxQAd99xADiQ6vfBJm1dgoaWv4Ah2HxsTz/m2GA==","shasum":"c28c391580eb0c1952c221bc4ebc6d0c6db31dd8","tarball":"https://nexus.nspop.dk/nexus/repository/nsp-npm/emitter-component/-/emitter-component-2.0.0.tgz","fileCount":8,"unpackedSize":10468,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDIeGv1VoU437PtQ/6LXaaWdG99OWfCZ98dSNGrXYcplwIhAJ28BlzwXBHYYeDeX8P6oyc4hxp5mutNHeM88i7DbtbF"}]},"_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"directories":{},"maintainers":[{"name":"coreh","email":"thecoreh@gmail.com"},{"name":"swatinem","email":"arpad.borsos@googlemail.com"},{"name":"anthonyshort","email":"antshort@gmail.com"},{"name":"ianstormtaylor","email":"ian@ianstormtaylor.com"},{"name":"cristiandouce","email":"cristiandouce@gmail.com"},{"name":"stagas","email":"gstagas@gmail.com"},{"name":"rauchg","email":"rauchg@gmail.com"},{"name":"kelonye","email":"kelonyemitchel@gmail.com"},{"name":"amasad","email":"amjad.masad@gmail.com"},{"name":"juliangruber","email":"julian@juliangruber.com"},{"name":"dominicbarnes","email":"dominic@segment.com"},{"name":"mattmueller","email":"mattmuelle@gmail.com"},{"name":"tootallnate","email":"nathan@tootallnate.net"},{"name":"yields","email":"yields@icloud.com"},{"name":"retrofox","email":"rdsuarez@gmail.com"},{"name":"sindresorhus","email":"sindresorhus@gmail.com"},{"name":"tjholowaychuk","email":"tj@vision-media.ca"},{"name":"jonathanong","email":"jonathanrichardong@gmail.com"},{"name":"jongleberry","email":"jonathanrichardong@gmail.com"},{"name":"forbeslindesay","email":"forbes@lindesay.co.uk"},{"name":"calvinfo","email":"calvin@calv.info"},{"name":"defunctzombie","email":"shtylman@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/emitter-component_2.0.0_1700168058757_0.7704424379826547"},"_hasShrinkwrap":false,"deprecated":"Renamed to component-emitter: https://www.npmjs.com/package/component-emitter"},"0.0.4":{"name":"emitter-component","description":"Event emitter","version":"0.0.4","devDependencies":{"mocha":"*","should":"*"},"component":{"scripts":{"emitter":"index.js"}},"_id":"emitter-component@0.0.4","dist":{"shasum":"c8a03c17180cf5ea4256ceb03a5e81d541357a88","tarball":"https://nexus.nspop.dk/nexus/repository/nsp-npm/emitter-component/-/emitter-component-0.0.4.tgz","integrity":"sha512-xIl+lZ4YMSBaIoU+0IZftkgJ5XFXzo+HEpC6lS6esp2AHCDaObJTGjnVgqR87KDy4lpcynw1ZEh/zmVjx+e6mA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIG40ai6jQTZJF5I8gOXIR5zzDX1zrCjGM7lFFDT3gYWIAiB7beAFTimA1EfnLz7ORaTpQp+IZuyDBvhaxRETIp5OUA=="}]},"maintainers":[{"name":"tjholowaychuk","email":"tj@vision-media.ca"}],"directories":{}},"0.0.5":{"name":"emitter-component","description":"Event emitter","version":"0.0.5","devDependencies":{"mocha":"*","should":"*"},"component":{"scripts":{"emitter":"index.js"}},"_id":"emitter-component@0.0.5","dist":{"shasum":"732333be048bf30a2b3385c22b5b4095a658fe89","tarball":"https://nexus.nspop.dk/nexus/repository/nsp-npm/emitter-component/-/emitter-component-0.0.5.tgz","integrity":"sha512-GN8qrA8FzOKI1aB5zbhmwZe736McX7xXiuLsLHCrUP+fF5UcWGEnTQwxBDd+NHj73Q+U0ntjYua+s/CHofkH3A==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCKLsoFYuhlUqUKWJK22IDIDFd+Wy14PZcjBSa7W/kmcgIhAKu5KkSYAHLdO3HdJ+M+9PhNF4AriNdDeEPE7mUTyZM7"}]},"maintainers":[{"name":"tjholowaychuk","email":"tj@vision-media.ca"}],"directories":{}},"0.0.2":{"name":"emitter-component","description":"Event emitter","version":"0.0.2","devDependencies":{"mocha":"*","should":"*"},"component":{"scripts":{"emitter":"index.js"}},"_id":"emitter-component@0.0.2","dist":{"shasum":"d0502f1078080f6516e1cb1ebb53074d798e4705","tarball":"https://nexus.nspop.dk/nexus/repository/nsp-npm/emitter-component/-/emitter-component-0.0.2.tgz","integrity":"sha512-Z8i4ogbnkaWEUd+4wkoZvbKaFhJlKSt0nSQcIUpMnSnjc4k8eimCDJRVrRrbc+5bmd6d+9Z1dp93q6haSp4PLg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIQC1pU98AaoYJ5H0TxRQLazUtVimV2R9XF7+kjegAbh2QwIfUCbMJhMlVM1i6PY+t1M9uklaWy/NcrqOmZw7uaclZw=="}]},"maintainers":[{"name":"tjholowaychuk","email":"tj@vision-media.ca"}],"directories":{}},"0.0.3":{"name":"emitter-component","description":"Event emitter","version":"0.0.3","devDependencies":{"mocha":"*","should":"*"},"component":{"scripts":{"emitter":"index.js"}},"_id":"emitter-component@0.0.3","dist":{"shasum":"3309d17ba1332ca5c833ade248af8051c94f1803","tarball":"https://nexus.nspop.dk/nexus/repository/nsp-npm/emitter-component/-/emitter-component-0.0.3.tgz","integrity":"sha512-WSC1PIyRhsaLMcecoy62UuzTxWWA8JSMDRexEypALGezAgyAYCHgoVagCExDOGKLm2b/8FZQLHnyGU9vAm3u8w==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCd5lFjM3l17Kd8iJ14OUFUoqHuy9piM9ej/8JCgOb27wIhAKOcKNPzGTpO7fSj5uUAldyuuJZg/fqB5pFslJRhU95c"}]},"maintainers":[{"name":"tjholowaychuk","email":"tj@vision-media.ca"}],"directories":{}},"1.0.0":{"name":"emitter-component","description":"Event emitter","version":"1.0.0","devDependencies":{"mocha":"*","should":"*"},"component":{"scripts":{"emitter":"index.js"}},"_id":"emitter-component@1.0.0","dist":{"shasum":"f04dd18fc3dc3e9a74cbc0f310b088666e4c016f","tarball":"https://nexus.nspop.dk/nexus/repository/nsp-npm/emitter-component/-/emitter-component-1.0.0.tgz","integrity":"sha512-GZrLdp4Z7OERecoYQYElVVqf6/gcbGUs8nvaE+nmu2dGy453lLgGyPLNX9DdSyojdMqI86fCT9XQqsWJymciEw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCBEssD1g8oBxNhFUm3Oc4uDwYHr2CY9iEva/SxWZj1MwIgbS/SthIk42AW711vD0k2gsyhrjE1Pxnk8R3x2JA/rGY="}]},"_from":".","_npmVersion":"1.2.2","_npmUser":{"name":"tjholowaychuk","email":"tj@vision-media.ca"},"maintainers":[{"name":"tjholowaychuk","email":"tj@vision-media.ca"}],"directories":{}},"1.0.1":{"name":"emitter-component","description":"Event emitter","version":"1.0.1","dependencies":{"indexof":"0.0.1"},"devDependencies":{"mocha":"*","should":"*"},"component":{"scripts":{"emitter":"index.js"}},"_id":"emitter-component@1.0.1","dist":{"shasum":"89b1bf871b5adbb875e1f3ee25211311fc5a3163","tarball":"https://nexus.nspop.dk/nexus/repository/nsp-npm/emitter-component/-/emitter-component-1.0.1.tgz","integrity":"sha512-ZftZYrg9n2OTnjp3CmvotV4oq7TLigHpe60yiabaif7o2TfHvb+kQrTspukst3tnXg9/xpS72c+v+zes7DFAjA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCICTZh9+8srwoE3vMY3AQ3585a/BoVgIDrLPMJ6BFa3yOAiEA5HqI0uTuUwl3VxewaH6fsrORxSHwdRGci9HP05hZDFM="}]},"_from":".","_npmVersion":"1.2.14","_npmUser":{"name":"tjholowaychuk","email":"tj@vision-media.ca"},"maintainers":[{"name":"tjholowaychuk","email":"tj@vision-media.ca"}],"directories":{}},"1.1.0":{"name":"emitter-component","description":"Event emitter","version":"1.1.0","dependencies":{"indexof":"0.0.1"},"devDependencies":{"mocha":"*","should":"*"},"component":{"scripts":{"emitter":"index.js"}},"repository":{"type":"git","url":"https://github.com/component/emitter.git"},"bugs":{"url":"https://github.com/component/emitter/issues"},"homepage":"https://github.com/component/emitter","_id":"emitter-component@1.1.0","dist":{"shasum":"d697cd6626295f0ab06fe8cb9b205f8bca50b235","tarball":"https://nexus.nspop.dk/nexus/repository/nsp-npm/emitter-component/-/emitter-component-1.1.0.tgz","integrity":"sha512-9fBNrru5tdsGpS0eDBbpKEz6uli873KPZVoFimzZlcO68O/Q3VfhAQYSLSZlJMgVUpUw52aQo6alBxhSNwLroA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCyUREoVGF7gZlbOo4lS45ZppfCwcSMHnaL2RBYO2iCJgIhAPEb4fNU1YsBi/BksGW+ZVtt8sJXBaWj8+vmKtvno0GL"}]},"_from":".","_npmVersion":"1.3.13","_npmUser":{"name":"tjholowaychuk","email":"tj@vision-media.ca"},"maintainers":[{"name":"tjholowaychuk","email":"tj@vision-media.ca"}],"directories":{}},"0.0.1":{"name":"emitter-component","description":"Event emitter","version":"0.0.1","devDependencies":{"mocha":"*","should":"*"},"component":{"scripts":{"emitter":"index.js"}},"_npmUser":{"name":"tjholowaychuk","email":"tj@vision-media.ca"},"_id":"emitter-component@0.0.1","dependencies":{},"optionalDependencies":{},"engines":{"node":"*"},"_engineSupported":true,"_npmVersion":"1.1.0-3","_nodeVersion":"v0.6.12","_defaultsLoaded":true,"dist":{"shasum":"26169d5aa708b82e4355102bdfa277ddda26aae2","tarball":"https://nexus.nspop.dk/nexus/repository/nsp-npm/emitter-component/-/emitter-component-0.0.1.tgz","integrity":"sha512-O1zoNxRLaUkcYTlAt6So0XWyq4cXq2Cik5GYufEjZLdqONwjPTHIHrpcblln0AqwN4oKpHtvaqBZBoX9NJIZaA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIEj5B1NNdnhMyVrdRtwYhMdcTetZ99axG1Dy3JzdEf5lAiApwgrEc6NfRYHQ8SPi/dgh6YVq7YanRRaeHqy75BONZw=="}]},"maintainers":[{"name":"tjholowaychuk","email":"tj@vision-media.ca"}],"directories":{}},"1.1.1":{"name":"emitter-component","description":"Event emitter","version":"1.1.1","devDependencies":{"mocha":"*","should":"*"},"component":{"scripts":{"emitter":"index.js"}},"repository":{"type":"git","url":"https://github.com/component/emitter.git"},"scripts":{"test":"make test"},"bugs":{"url":"https://github.com/component/emitter/issues"},"homepage":"https://github.com/component/emitter","_id":"emitter-component@1.1.1","dist":{"shasum":"065e2dbed6959bf470679edabeaf7981d1003ab6","tarball":"https://nexus.nspop.dk/nexus/repository/nsp-npm/emitter-component/-/emitter-component-1.1.1.tgz","integrity":"sha512-G+mpdiAySMuB7kesVRLuyvYRqDmshB7ReKEVuyBPkzQlmiDiLrt7hHHIy4Aff552bgknVN7B2/d3lzhGO5dvpQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDqID6bwE/INMtITZPGRaNOGe12so++ltraldGteVf6gQIgCCjRVaQZRSfc+S9bwGXxlsGhUBzOnUbrQ/ubDynvmPw="}]},"_from":".","_npmVersion":"1.3.15","_npmUser":{"name":"tjholowaychuk","email":"tj@vision-media.ca"},"maintainers":[{"name":"tjholowaychuk","email":"tj@vision-media.ca"}],"directories":{}}},"name":"emitter-component","time":{"0.0.6":"2012-10-09T00:03:25.960Z","2.0.0":"2023-11-16T20:54:18.943Z","0.0.4":"2012-09-06T05:09:08.236Z","0.0.5":"2012-09-07T21:33:52.528Z","created":"2012-05-03T17:53:52.498Z","0.0.2":"2012-06-29T01:40:05.231Z","0.0.3":"2012-08-09T15:54:36.937Z","0.0.1":"2012-05-03T17:53:53.878Z","1.1.2":"2023-11-16T20:53:56.242Z","modified":"2025-05-07T15:11:04.478Z","1.0.0":"2013-02-26T22:39:28.158Z","1.0.1":"2013-06-27T15:55:31.673Z","1.1.0":"2013-11-07T20:21:01.394Z","1.1.1":"2013-12-01T23:37:40.662Z"},"readmeFilename":"Readme.md","homepage":"https://github.com/sindresorhus/component-emitter#readme"}