{"_id":"@carbdrox/vue-event-bus","_rev":"2-b632f79d52787f40eec83dd1da95bec1","name":"@carbdrox/vue-event-bus","dist-tags":{"latest":"1.0.1"},"versions":{"1.0.0":{"name":"@carbdrox/vue-event-bus","version":"1.0.0","description":"A Vue.Js plugin which adds a global event bus to your project.","amdName":"VueEventBus","main":"src/install.js","author":{"name":"Christian Förster"},"keywords":["Vue","plugin","events","eventbus","event-bus","bus"],"repository":{"type":"git","url":"git+https://github.com/Carbdrox/vue-event-bus.git"},"license":"MIT","bugs":{"url":"https://github.com/Carbdrox/vue-event-bus/issues"},"homepage":"https://github.com/Carbdrox/vue-event-bus#readme","gitHead":"6a86dcebe1b506fd40c02238afa927a78fbfad29","_id":"@carbdrox/vue-event-bus@1.0.0","_nodeVersion":"14.15.0","_npmVersion":"6.14.8","dist":{"integrity":"sha512-z/aFGyngfDY0rRImg39iJ0ZLzSYEfZgH5FPk1Qjp4gq90yIKHUetQO6iSq0Y/zJvITn0k8pu3rHp0Zby09L4WQ==","shasum":"dac5dba502390cc2bd2829ff69a910524b5b8098","tarball":"https://registry.npmjs.org/@carbdrox/vue-event-bus/-/vue-event-bus-1.0.0.tgz","fileCount":5,"unpackedSize":6488,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgMC8sCRA9TVsSAnZWagAAavgQAJS0MEBzfG7vpaoJVjeX\nE/j3JRtdWkPDlsxbwRiaIIqO803kbT0xqdehkcA9rqzHk2KlToXDyNHMhP7C\n81pNuWeUx8RmkWGQREVnu6gottbV5tSdoNujBRTUM5fRCOr5DdYXWHpK7yIs\nNfH201Ubd9sd3+xPGQYAYws5DUnudVxHALFGTWy0tk/ZmLpEWGKAYuLxokpx\n67SysmXjBjUAf7BhQWDgLe4wbpn8/edevx8rHqpDkSikzHc7mIXXhe1/UK4M\nl/ypww/LTywqt0G+elm/5MNnmXP6q4m9RSFzcEoxREvQcAzMw+PwMvhWNS/1\nPq8ccywpRGlz4fzZZnlEqfs+0RmGJDDXK5bysgHH9mxaD5C9gGcW6c2Wf5Ee\nCs0angkTYitGdL8cSgkVCNNiJD3cgUmM4jKxCMOLKNKR+UaOlK4NWycskxht\nRjTsgXypfkzqv+OG9YX6IThJsiBlF76FIff6w0ukjPhQESN6mT0WrYyvwhbn\n+Royf46zlJMwhs/1YqGqtdPTAZum8lvdnWB9OXStcqheq+pETG2W1cU3wLjD\n8vi2gxJ5IErLwXjscDIj0hizt8dNDnIqrbiQjfVRUFj077flqcHS8YXpXUkd\njGwXz3LIfCAqAr3QI+j1L0E3iBW5HB4utFFaq/ScTR6dPbYLy5tWznmwBRF4\n0ahf\r\n=xLly\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIBiGYjGp9MhpvdOTh0Cbu08wAyk4ypasQLz0Zz4krAAQAiEAuErIm0lVN3T/B4efXD9XYfzWajCvZKgcsSeiLEqDaes="}]},"_npmUser":{"name":"carbdrox","email":"npm@foerster.dev"},"directories":{},"maintainers":[{"name":"carbdrox","email":"npm@foerster.dev"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/vue-event-bus_1.0.0_1613770540289_0.9138862358392581"},"_hasShrinkwrap":false},"1.0.1":{"name":"@carbdrox/vue-event-bus","version":"1.0.1","description":"A Vue.Js plugin which adds a global event bus to your project.","amdName":"VueEventBus","main":"src/install.js","author":{"name":"Christian Förster"},"keywords":["Vue","plugin","events","eventbus","event-bus","bus"],"repository":{"type":"git","url":"git+https://github.com/Carbdrox/vue-event-bus.git"},"license":"MIT","bugs":{"url":"https://github.com/Carbdrox/vue-event-bus/issues"},"homepage":"https://github.com/Carbdrox/vue-event-bus#readme","gitHead":"06edf1ae7279ea6e38b711bbad037fa0852e9106","_id":"@carbdrox/vue-event-bus@1.0.1","_nodeVersion":"14.15.0","_npmVersion":"6.14.8","dist":{"integrity":"sha512-b6LyVOlD4+lEmEbUub1AhzMaV+9wZH5T9PoGGaXlg2jagP2ME7UBQM6GtuP/FLsUjVFZHasMKnxzK1iQ8coJhg==","shasum":"864f32bbf64aebcc86dcfcfa9184a0e05245995e","tarball":"https://registry.npmjs.org/@carbdrox/vue-event-bus/-/vue-event-bus-1.0.1.tgz","fileCount":5,"unpackedSize":6806,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgMNCiCRA9TVsSAnZWagAARRMP/03pWfATzmN8Gsfha0/H\nDdv3ggttxrxeJDgiRUoRJv5pCpIoOKWwOI47ZwVpo5eIXp9V8LOW/GXhzqm4\n+z+r2Kd/G2w24fVcwc93DED9jN8UQYPdM10QFDI6bqzshESkPGTV3472wdWA\ns1vy+RMz0qIER81LDmlukfqXAJUTVwosuq6BLUcg18BuMjcrl80l8DD0xaQl\n3cZEoX0diwwxAw7dZMZy0r67ggd2DZMTPtD2LuX5P40WOLNO5ENXm9BVtaf5\nGL99isQCK7tPaqiMtePzFO8KpLSzJ11oMxVgdarA1F3NvcEVcJo9etl/acUb\nV3tKPfl9GTyt5yWZbo19a/vxs0ZdXjOGPVMC9xfhHaLejbdXmMhXcS4a9nc8\nWNggoj/fiCjPSnZSndW6DQiA3DtKBfyy9NUC/6wHWMl5I/nrrGhGmZK6OSlL\nF6IrW18r8EOwmyw/UmtnmD6ti9U6OqbhxHjm0uCDrHDLVAkSGDeomNiq6821\nhLYKZRfqpGtobr+qytuMqAMT07FVNcb/F+IajuurOK4eyxft/N6a0ExFvQID\naqR71rv8tYR3S8O+vPLTJhKm7M09bqKSb6CjIX4nBXhpwo4e0OJx4Rezzx5K\nkkY1VD5nv/piYy4o8Uic5VV22gHCeh7vpm9RhifA4VowvqADD1qhgEBlKxeU\nKay0\r\n=ZIXR\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIG9e1WpuymYJzVUi8wa/qDvDuAdWIyhfV8fSGqImYv77AiEA2othIWlIu0K7wvKW/yJM0CSuYP1bAX7WP94vhJqrFro="}]},"_npmUser":{"name":"carbdrox","email":"npm@foerster.dev"},"directories":{},"maintainers":[{"name":"carbdrox","email":"npm@foerster.dev"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/vue-event-bus_1.0.1_1613811874395_0.4189308036997803"},"_hasShrinkwrap":false}},"time":{"created":"2021-02-19T21:35:40.247Z","1.0.0":"2021-02-19T21:35:40.428Z","modified":"2022-04-04T21:47:40.187Z","1.0.1":"2021-02-20T09:04:34.553Z"},"maintainers":[{"name":"carbdrox","email":"npm@foerster.dev"}],"description":"A Vue.Js plugin which adds a global event bus to your project.","homepage":"https://github.com/Carbdrox/vue-event-bus#readme","keywords":["Vue","plugin","events","eventbus","event-bus","bus"],"repository":{"type":"git","url":"git+https://github.com/Carbdrox/vue-event-bus.git"},"author":{"name":"Christian Förster"},"bugs":{"url":"https://github.com/Carbdrox/vue-event-bus/issues"},"license":"MIT","readme":"# Vue.Js Event-Bus\nA Vue.Js plugin which adds a global event bus to your vue-project.\n\n## Installation\n\n### Using npm\n\n```\nnpm i @carbdrox/vue-event-bus --save\n```\n\n## Setup\nNormally done inside `main.js`\n```javascript\nimport VueEventBus from \"@carbdrox/vue-event-bus\";\n\nVue.use(VueEventBus);\n```\n\n## Usage\nInside your Components e.g. `App.vue`\n```javascript\nexport default {\n    created() {\n        this.$addListener('event', () => {\n            console.log('event Fired!')\n        });\n    },\n    methods: {\n        fireEvent() {\n            this.$emitEvent('event');\n        }\n    }\n}\n```\n\n### Interface\nThis Plugin provides the following interface   \n`this.$addListener(eventName, listener, amount)`:  \n\n| Parameter | Required | Description                                                                     |\n|-----------|----------|---------------------------------------------------------------------------------|\n| eventName | yes      | The name of the event to listen for.                                            |\n| listener  | yes      | The function that will be executed when the event is fired.                     |\n| amount    | no       | The number of times the listener should be executed. (empty or -1 for no limit) |\n\n`this.$removeListener(eventName, listener)`:  \n\n| Parameter | Required | Description                                                                                                                |\n|-----------|----------|----------------------------------------------------------------------------------------------------------------------------|\n| eventName | no       | The name of the event to remove. If no eventName specified, all events will be deleted                                     |\n| listener  | no       | The function of the event to be deleted. If no function is specified, all functions of the specified event will be deleted |\n\n`this.$emitEvent(eventName, params)`:  \n\n| Parameter | Required | Description                                                                                                  |\n|-----------|----------|--------------------------------------------------------------------------------------------------------------|\n| eventName | yes      | The name of the event to be fired.                                                                           |\n| params    | no       | The parameter to be passed to the event. If multiple parameters are required, they must be passed as object. |\n\n## License\n\nMIT\n\n","readmeFilename":"README.md"}