{ "_id": "component-emitter", "_rev": "51-66c8e77e9488b7b90b6d1793e1ae4a71", "name": "component-emitter", "description": "Event emitter", "dist-tags": { "latest": "1.3.0" }, "versions": { "1.1.2": { "name": "component-emitter", "description": "Event emitter", "version": "1.1.2", "devDependencies": { "mocha": "*", "should": "*" }, "component": { "scripts": { "emitter/index.js": "index.js" } }, "main": "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": "component-emitter@1.1.2", "dist": { "shasum": "296594f2753daa63996d2af08d15a95116c9aec3", "tarball": "https://registry.npmjs.org/component-emitter/-/component-emitter-1.1.2.tgz" }, "_from": ".", "_npmVersion": "1.3.24", "_npmUser": { "name": "tootallnate", "email": "nathan@tootallnate.net" }, "maintainers": [ { "name": "tootallnate", "email": "nathan@tootallnate.net" } ], "directories": {} }, "1.1.3": { "name": "component-emitter", "description": "Event emitter", "version": "1.1.3", "devDependencies": { "mocha": "*", "should": "*" }, "component": { "scripts": { "emitter/index.js": "index.js" } }, "main": "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": "component-emitter@1.1.3", "_shasum": "2bf887a4a9fc856eafcabcd82a43eb42a57eec6f", "_from": ".", "_npmVersion": "1.4.9", "_npmUser": { "name": "juliangruber", "email": "julian@juliangruber.com" }, "maintainers": [ { "name": "tootallnate", "email": "nathan@tootallnate.net" }, { "name": "tjholowaychuk", "email": "tj@vision-media.ca" }, { "name": "rauchg", "email": "rauchg@gmail.com" }, { "name": "retrofox", "email": "rdsuarez@gmail.com" }, { "name": "coreh", "email": "thecoreh@gmail.com" }, { "name": "forbeslindesay", "email": "forbes@lindesay.co.uk" }, { "name": "kelonye", "email": "kelonyemitchel@gmail.com" }, { "name": "mattmueller", "email": "mattmuelle@gmail.com" }, { "name": "yields", "email": "yields@icloud.com" }, { "name": "anthonyshort", "email": "antshort@gmail.com" }, { "name": "jongleberry", "email": "jonathanrichardong@gmail.com" }, { "name": "ianstormtaylor", "email": "ian@ianstormtaylor.com" }, { "name": "cristiandouce", "email": "cristian@gravityonmars.com" }, { "name": "swatinem", "email": "arpad.borsos@googlemail.com" }, { "name": "stagas", "email": "gstagas@gmail.com" }, { "name": "amasad", "email": "amjad.masad@gmail.com" }, { "name": "juliangruber", "email": "julian@juliangruber.com" }, { "name": "shtylman", "email": "shtylman@gmail.com" }, { "name": "calvinfo", "email": "calvin@calv.info" }, { "name": "dominicbarnes", "email": "dominic@dbarnes.info" }, { "name": "blakeembrey", "email": "hello@blakeembrey.com" }, { "name": "timoxley", "email": "secoif@gmail.com" }, { "name": "jonathanong", "email": "jonathanrichardong@gmail.com" }, { "name": "queckezz", "email": "fabian.eichenberger@gmail.com" }, { "name": "nami-doc", "email": "vendethiel@hotmail.fr" }, { "name": "clintwood", "email": "clint@anotherway.co.za" }, { "name": "thehydroimpulse", "email": "dnfagnan@gmail.com" }, { "name": "stephenmathieson", "email": "me@stephenmathieson.com" }, { "name": "trevorgerhardt", "email": "trevorgerhardt@gmail.com" } ], "dist": { "shasum": "2bf887a4a9fc856eafcabcd82a43eb42a57eec6f", "tarball": "https://registry.npmjs.org/component-emitter/-/component-emitter-1.1.3.tgz" }, "directories": {} }, "1.2.0": { "name": "component-emitter", "description": "Event emitter", "version": "1.2.0", "license": "MIT", "devDependencies": { "mocha": "*", "should": "*" }, "component": { "scripts": { "emitter/index.js": "index.js" } }, "main": "index.js", "repository": { "type": "git", "url": "https://github.com/component/emitter.git" }, "scripts": { "test": "make test" }, "files": [ "index.js", "LICENSE" ], "gitHead": "4d18307a2cdd2cec16d1fadf9e04f02351a8d62e", "bugs": { "url": "https://github.com/component/emitter/issues" }, "homepage": "https://github.com/component/emitter", "_id": "component-emitter@1.2.0", "_shasum": "ccd113a86388d06482d03de3fc7df98526ba8efe", "_from": ".", "_npmVersion": "2.5.1", "_nodeVersion": "1.2.0", "_npmUser": { "name": "jongleberry", "email": "jonathanrichardong@gmail.com" }, "maintainers": [ { "name": "tootallnate", "email": "nathan@tootallnate.net" }, { "name": "tjholowaychuk", "email": "tj@vision-media.ca" }, { "name": "rauchg", "email": "rauchg@gmail.com" }, { "name": "retrofox", "email": "rdsuarez@gmail.com" }, { "name": "coreh", "email": "thecoreh@gmail.com" }, { "name": "forbeslindesay", "email": "forbes@lindesay.co.uk" }, { "name": "kelonye", "email": "kelonyemitchel@gmail.com" }, { "name": "mattmueller", "email": "mattmuelle@gmail.com" }, { "name": "yields", "email": "yields@icloud.com" }, { "name": "anthonyshort", "email": "antshort@gmail.com" }, { "name": "jongleberry", "email": "jonathanrichardong@gmail.com" }, { "name": "ianstormtaylor", "email": "ian@ianstormtaylor.com" }, { "name": "cristiandouce", "email": "cristian@gravityonmars.com" }, { "name": "swatinem", "email": "arpad.borsos@googlemail.com" }, { "name": "stagas", "email": "gstagas@gmail.com" }, { "name": "amasad", "email": "amjad.masad@gmail.com" }, { "name": "juliangruber", "email": "julian@juliangruber.com" }, { "name": "shtylman", "email": "shtylman@gmail.com" }, { "name": "calvinfo", "email": "calvin@calv.info" }, { "name": "dominicbarnes", "email": "dominic@dbarnes.info" }, { "name": "blakeembrey", "email": "hello@blakeembrey.com" }, { "name": "timoxley", "email": "secoif@gmail.com" }, { "name": "jonathanong", "email": "jonathanrichardong@gmail.com" }, { "name": "queckezz", "email": "fabian.eichenberger@gmail.com" }, { "name": "nami-doc", "email": "vendethiel@hotmail.fr" }, { "name": "clintwood", "email": "clint@anotherway.co.za" }, { "name": "thehydroimpulse", "email": "dnfagnan@gmail.com" }, { "name": "stephenmathieson", "email": "me@stephenmathieson.com" }, { "name": "trevorgerhardt", "email": "trevorgerhardt@gmail.com" }, { "name": "timaschew", "email": "timaschew@gmail.com" }, { "name": "hughsk", "email": "hughskennedy@gmail.com" } ], "dist": { "shasum": "ccd113a86388d06482d03de3fc7df98526ba8efe", "tarball": "https://registry.npmjs.org/component-emitter/-/component-emitter-1.2.0.tgz" }, "directories": {} }, "1.2.1": { "name": "component-emitter", "description": "Event emitter", "version": "1.2.1", "license": "MIT", "devDependencies": { "mocha": "*", "should": "*" }, "component": { "scripts": { "emitter/index.js": "index.js" } }, "main": "index.js", "repository": { "type": "git", "url": "git+https://github.com/component/emitter.git" }, "scripts": { "test": "make test" }, "files": [ "index.js", "LICENSE" ], "gitHead": "187492ab8028c7221b589bdfd482b715149cd868", "bugs": { "url": "https://github.com/component/emitter/issues" }, "homepage": "https://github.com/component/emitter#readme", "_id": "component-emitter@1.2.1", "_shasum": "137918d6d78283f7df7a6b7c5a63e140e69425e6", "_from": ".", "_npmVersion": "2.10.1", "_nodeVersion": "0.12.4", "_npmUser": { "name": "nami-doc", "email": "karp@hotmail.fr" }, "maintainers": [ { "name": "tootallnate", "email": "nathan@tootallnate.net" }, { "name": "hughsk", "email": "hughskennedy@gmail.com" }, { "name": "trevorgerhardt", "email": "trevorgerhardt@gmail.com" }, { "name": "timaschew", "email": "timaschew@gmail.com" }, { "name": "tjholowaychuk", "email": "tj@vision-media.ca" }, { "name": "rauchg", "email": "rauchg@gmail.com" }, { "name": "retrofox", "email": "rdsuarez@gmail.com" }, { "name": "coreh", "email": "thecoreh@gmail.com" }, { "name": "forbeslindesay", "email": "forbes@lindesay.co.uk" }, { "name": "kelonye", "email": "kelonyemitchel@gmail.com" }, { "name": "mattmueller", "email": "mattmuelle@gmail.com" }, { "name": "yields", "email": "yields@icloud.com" }, { "name": "anthonyshort", "email": "antshort@gmail.com" }, { "name": "jongleberry", "email": "jonathanrichardong@gmail.com" }, { "name": "ianstormtaylor", "email": "ian@ianstormtaylor.com" }, { "name": "cristiandouce", "email": "cristian@gravityonmars.com" }, { "name": "swatinem", "email": "arpad.borsos@googlemail.com" }, { "name": "stagas", "email": "gstagas@gmail.com" }, { "name": "amasad", "email": "amjad.masad@gmail.com" }, { "name": "juliangruber", "email": "julian@juliangruber.com" }, { "name": "calvinfo", "email": "calvin@calv.info" }, { "name": "dominicbarnes", "email": "dominic@dbarnes.info" }, { "name": "blakeembrey", "email": "hello@blakeembrey.com" }, { "name": "timoxley", "email": "secoif@gmail.com" }, { "name": "jonathanong", "email": "jonathanrichardong@gmail.com" }, { "name": "queckezz", "email": "fabian.eichenberger@gmail.com" }, { "name": "nami-doc", "email": "vendethiel@hotmail.fr" }, { "name": "clintwood", "email": "clint@anotherway.co.za" }, { "name": "thehydroimpulse", "email": "dnfagnan@gmail.com" }, { "name": "stephenmathieson", "email": "me@stephenmathieson.com" }, { "name": "dfcreative", "email": "df.creative@gmail.com" }, { "name": "defunctzombie", "email": "shtylman@gmail.com" } ], "dist": { "shasum": "137918d6d78283f7df7a6b7c5a63e140e69425e6", "tarball": "https://registry.npmjs.org/component-emitter/-/component-emitter-1.2.1.tgz" }, "_npmOperationalInternal": { "host": "packages-12-west.internal.npmjs.com", "tmp": "tmp/component-emitter-1.2.1.tgz_1461005707641_0.14232611074112356" }, "directories": {} }, "1.3.0": { "name": "component-emitter", "description": "Event emitter", "version": "1.3.0", "license": "MIT", "devDependencies": { "mocha": "*", "should": "*" }, "component": { "scripts": { "emitter/index.js": "index.js" } }, "main": "index.js", "repository": { "type": "git", "url": "git+https://github.com/component/emitter.git" }, "scripts": { "test": "make test" }, "gitHead": "6bd7817e8a444cb16e8abdf7dd2d7f04d5ca3dc8", "bugs": { "url": "https://github.com/component/emitter/issues" }, "homepage": "https://github.com/component/emitter#readme", "_id": "component-emitter@1.3.0", "_npmVersion": "5.6.0", "_nodeVersion": "8.10.0", "_npmUser": { "name": "nami-doc", "email": "vendethiel@hotmail.fr" }, "dist": { "integrity": "sha512-Rd3se6QB+sO1TwqZjscQrurpEPIfO0/yYnSin6Q/rD3mOutHvUrCAhJub3r90uNb+SESBuE0QYoB90YdfatsRg==", "shasum": "16e4070fba8ae29b679f2215853ee181ab2eabc0", "tarball": "https://registry.npmjs.org/component-emitter/-/component-emitter-1.3.0.tgz", "fileCount": 5, "unpackedSize": 8001, "npm-signature": "-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJctO4ICRA9TVsSAnZWagAAIwkP/2seJl5R6k04DzjI2I4D\ns/OxuiaQjcjhXseLkEuSdRNzJKdeGdL9nujc6/zYzbhWfIyUpes9FetRnsut\nGMpM2ClspSTxKGIxkHyvTFzYEM/nBHjwfxlDuiT2siCpCIoRvRV5440MyrBU\nNio6j/uAlAVSPUDzXYNUvzdsMl+2mAJUcgXmrFFvn2hI2tJbDJ8UuMdZ9++R\nk8vPm5Dm7XL7b3LmZZZ9Y5JndyZuISGeAPL2bbRYOm+0p9ozA4FGtpJysVIe\ntOTuiXZfvMSgXVYgGP0avYXbx40L6X+Kcwmm1W2P7Owz3T6r7oVmtnvk4Z8/\nZbWLeJ5Pbq61e+1udRLidmCtKz6X5oafK4bElnQ4Oa1zrjP/bwLlkmfaLPOc\n3dZiPnOZ8TwbLFmH7Fc2yL2Vx3mcYQ7p+e4wcWcxlAVJA74GXzg/7+a79GSq\nl5b62nbeU7dvU831b375PZaa5RpGs7Tbw4hsOV14kCLd2khmOLwF4u1xmMTZ\n8r45Qjb2ZO+3rGSWOM2SGdl6Biw4SGXeC1WalAY1PaY1Bd1MDjCqqqNeKGC8\nwrKD/koSSGKzcKi54OffLLi63Rwk7rLeu4/kF+RKw5EzI/eQcB/EK6gSfJOP\nm/ErUTK3436UgHhg6/XHyj1JVM6zrOJnaEHwyqVtd6xkXF/Nm0FhsvXOxyA4\n0xVL\r\n=o9Hs\r\n-----END PGP SIGNATURE-----\r\n" }, "maintainers": [ { "email": "amjad.masad@gmail.com", "name": "amasad" }, { "email": "antshort@gmail.com", "name": "anthonyshort" }, { "email": "hello@blakeembrey.com", "name": "blakeembrey" }, { "email": "calvin@calv.info", "name": "calvinfo" }, { "email": "clint@anotherway.co.za", "name": "clintwood" }, { "email": "thecoreh@gmail.com", "name": "coreh" }, { "email": "cristiandouce@gmail.com", "name": "cristiandouce" }, { "email": "shtylman@gmail.com", "name": "defunctzombie" }, { "email": "df.creative@gmail.com", "name": "dfcreative" }, { "email": "dominic@dbarnes.info", "name": "dominicbarnes" }, { "email": "forbes@lindesay.co.uk", "name": "forbeslindesay" }, { "email": "hughskennedy@gmail.com", "name": "hughsk" }, { "email": "ian@ianstormtaylor.com", "name": "ianstormtaylor" }, { "email": "jonathanrichardong@gmail.com", "name": "jonathanong" }, { "email": "jonathanrichardong@gmail.com", "name": "jongleberry" }, { "email": "julian@juliangruber.com", "name": "juliangruber" }, { "email": "kelonyemitchel@gmail.com", "name": "kelonye" }, { "email": "mattmuelle@gmail.com", "name": "mattmueller" }, { "email": "vendethiel@hotmail.fr", "name": "nami-doc" }, { "email": "fabian.eichenberger@gmail.com", "name": "queckezz" }, { "email": "rauchg@gmail.com", "name": "rauchg" }, { "email": "rdsuarez@gmail.com", "name": "retrofox" }, { "email": "gstagas@gmail.com", "name": "stagas" }, { "email": "me@stephenmathieson.com", "name": "stephenmathieson" }, { "email": "arpad.borsos@googlemail.com", "name": "swatinem" }, { "email": "dnfagnan@gmail.com", "name": "thehydroimpulse" }, { "email": "timaschew@gmail.com", "name": "timaschew" }, { "email": "secoif@gmail.com", "name": "timoxley" }, { "email": "tj@vision-media.ca", "name": "tjholowaychuk" }, { "email": "nathan@tootallnate.net", "name": "tootallnate" }, { "email": "trevorgerhardt@gmail.com", "name": "trevorgerhardt" }, { "email": "yields@icloud.com", "name": "yields" } ], "directories": {}, "_npmOperationalInternal": { "host": "s3://npm-registry-packages", "tmp": "tmp/component-emitter_1.3.0_1555361288195_0.12626268851479416" }, "_hasShrinkwrap": false } }, "readme": "# Emitter [![Build Status](https://travis-ci.org/component/emitter.png)](https://travis-ci.org/component/emitter)\r\n\r\n Event emitter component.\r\n\r\n## Installation\r\n\r\n```\r\n$ component install component/emitter\r\n```\r\n\r\n## API\r\n\r\n### Emitter(obj)\r\n\r\n The `Emitter` may also be used as a mixin. For example\r\n a \"plain\" object may become an emitter, or you may\r\n extend an existing prototype.\r\n\r\n As an `Emitter` instance:\r\n\r\n```js\r\nvar Emitter = require('emitter');\r\nvar emitter = new Emitter;\r\nemitter.emit('something');\r\n```\r\n\r\n As a mixin:\r\n\r\n```js\r\nvar Emitter = require('emitter');\r\nvar user = { name: 'tobi' };\r\nEmitter(user);\r\n\r\nuser.emit('im a user');\r\n```\r\n\r\n As a prototype mixin:\r\n\r\n```js\r\nvar Emitter = require('emitter');\r\nEmitter(User.prototype);\r\n```\r\n\r\n### Emitter#on(event, fn)\r\n\r\n Register an `event` handler `fn`.\r\n\r\n### Emitter#once(event, fn)\r\n\r\n Register a single-shot `event` handler `fn`,\r\n removed immediately after it is invoked the\r\n first time.\r\n\r\n### Emitter#off(event, fn)\r\n\r\n * Pass `event` and `fn` to remove a listener.\r\n * Pass `event` to remove all listeners on that event.\r\n * Pass nothing to remove all listeners on all events.\r\n\r\n### Emitter#emit(event, ...)\r\n\r\n Emit an `event` with variable option args.\r\n\r\n### Emitter#listeners(event)\r\n\r\n Return an array of callbacks, or an empty array.\r\n\r\n### Emitter#hasListeners(event)\r\n\r\n Check if this emitter has `event` handlers.\r\n\r\n## License\r\n\r\nMIT\r\n", "maintainers": [ { "email": "amjad.masad@gmail.com", "name": "amasad" }, { "email": "antshort@gmail.com", "name": "anthonyshort" }, { "email": "hello@blakeembrey.com", "name": "blakeembrey" }, { "email": "calvin@calv.info", "name": "calvinfo" }, { "email": "clint@anotherway.co.za", "name": "clintwood" }, { "email": "thecoreh@gmail.com", "name": "coreh" }, { "email": "cristiandouce@gmail.com", "name": "cristiandouce" }, { "email": "shtylman@gmail.com", "name": "defunctzombie" }, { "email": "df.creative@gmail.com", "name": "dfcreative" }, { "email": "dominic@dbarnes.info", "name": "dominicbarnes" }, { "email": "forbes@lindesay.co.uk", "name": "forbeslindesay" }, { "email": "hughskennedy@gmail.com", "name": "hughsk" }, { "email": "ian@ianstormtaylor.com", "name": "ianstormtaylor" }, { "email": "jonathanrichardong@gmail.com", "name": "jonathanong" }, { "email": "jonathanrichardong@gmail.com", "name": "jongleberry" }, { "email": "julian@juliangruber.com", "name": "juliangruber" }, { "email": "kelonyemitchel@gmail.com", "name": "kelonye" }, { "email": "mattmuelle@gmail.com", "name": "mattmueller" }, { "email": "vendethiel@hotmail.fr", "name": "nami-doc" }, { "email": "fabian.eichenberger@gmail.com", "name": "queckezz" }, { "email": "rauchg@gmail.com", "name": "rauchg" }, { "email": "rdsuarez@gmail.com", "name": "retrofox" }, { "email": "gstagas@gmail.com", "name": "stagas" }, { "email": "me@stephenmathieson.com", "name": "stephenmathieson" }, { "email": "arpad.borsos@googlemail.com", "name": "swatinem" }, { "email": "dnfagnan@gmail.com", "name": "thehydroimpulse" }, { "email": "timaschew@gmail.com", "name": "timaschew" }, { "email": "secoif@gmail.com", "name": "timoxley" }, { "email": "tj@vision-media.ca", "name": "tjholowaychuk" }, { "email": "nathan@tootallnate.net", "name": "tootallnate" }, { "email": "trevorgerhardt@gmail.com", "name": "trevorgerhardt" }, { "email": "yields@icloud.com", "name": "yields" } ], "time": { "modified": "2019-04-15T20:48:14.119Z", "created": "2014-02-11T02:15:29.076Z", "1.1.2": "2014-02-11T02:15:29.076Z", "1.1.3": "2014-06-20T06:24:49.737Z", "1.2.0": "2015-02-12T18:37:13.945Z", "1.2.1": "2016-04-18T18:55:09.978Z", "1.3.0": "2019-04-15T20:48:08.367Z" }, "readmeFilename": "Readme.md", "homepage": "https://github.com/component/emitter#readme", "repository": { "type": "git", "url": "git+https://github.com/component/emitter.git" }, "bugs": { "url": "https://github.com/component/emitter/issues" }, "users": { "h02e56": true, "kontrax": true, "tommyzzm": true, "monjer": true, "alexsasharegan": true, "dwqs": true, "heartnett": true }, "license": "MIT" }