{"_id":"@aphorica/vue-event-bus","_rev":"1-6e17dbbe9b6ba916952af56615bac87f","name":"@aphorica/vue-event-bus","dist-tags":{"latest":"1.0.0"},"versions":{"1.0.0":{"name":"@aphorica/vue-event-bus","version":"1.0.0","description":"Loads and parses js file","main":"index.js","repository":{"type":"git","url":"git+https://github.com/Aphorica/vue-event-bus.git"},"author":{"name":"Rick Berger - Aphorica, Inc.","email":"gbergeraph@gmail.com"},"license":"MIT","private":false,"gitHead":"aa0b20d9e9eab14cc684f2c42ce50da8710f8101","bugs":{"url":"https://github.com/Aphorica/vue-event-bus/issues"},"homepage":"https://github.com/Aphorica/vue-event-bus#readme","_id":"@aphorica/vue-event-bus@1.0.0","_npmVersion":"5.1.0","_nodeVersion":"10.15.3","_npmUser":{"name":"rickbsgu","email":"gbergeraph@gmail.com"},"dist":{"integrity":"sha512-0/j27kBjaSCv6ZZY/9Om0pC1R5DhjkFM2qGwwXUD/+KF8i4QCXwkEQvT5fZ8IYjzoNjsGd0Jwlh0A3hocD9a7g==","shasum":"9c5549f2fdccfe48398d21807c2d3f924ce7fd70","tarball":"https://registry.npmjs.org/@aphorica/vue-event-bus/-/vue-event-bus-1.0.0.tgz","fileCount":5,"unpackedSize":2401,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJctJ1fCRA9TVsSAnZWagAAeLYP/R6qKx9ZdlvNKnaZeuaM\ntmvs4w7FHpNWhXL6CD261S4+BhxNhSRFg5lvGMSQebzbYTdjmLCDCO+CEGK6\n0/pMy5ky7b9tukxcjqX72jQ9NJKQH94EEHAxHLD8h4WTwM513KEUENVdWFso\nzeqaCFxW7HSpPu48WOOXa+k0FU4OCSWP12/vqxIw4W6D1M/uCP2tCWY/oPt/\nrYhLzNPTiwB9qxOaW/KGFef9RDXg82Da5A6JlVzy5OdwcUeRwblbAgOgW6uI\n1USMtWwmr6MU8BXK5R2tRCtIEHQ8lhkfXy2ztiTlgrw8LhyspjXIpeO3hUIp\noDHwKoVI1LV5VrG5DiWiWOqGCqkRH+uJ4DGuH7t6mF/BfOSJZmeHkLaGx1mz\nb7H9Jb0Fgs8cst9Qgex9eDS7Yj/SPgaC6tMLir+K5FFFinvbp1kuA9meH1ym\nQh5iJPnv6yUtXo6tyqrIaP31HCKvA6UtOKvEA2tiHdT+1bwSq0FFC9mCRrUq\nQFZ5OO5/Cfg0Lj5u33ldDbeJCLQoT6qeVdtJvvfzJWatTL8Htd+pzy1cZdZI\nfwnR5EXYDSTzalExuDOr6dTc/+Sr9VKA5WeCA3l/vRtc8l1X1lw1p/WaKVci\ntcUFURRxpsTsqCRElmWij6tu12MMQqp7n5TodYEX8fOSpyijMFP04If0Xi4o\nENJJ\r\n=PE2K\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIClGKfRIt+VgX1Wky70KM/DqO3b1iKuM959djsM/100MAiEAzI/ab5X0elI7M+E1m8nHyeDH50VxI7avVZJSeaUohHU="}]},"maintainers":[{"name":"rickbsgu","email":"gbergeraph@gmail.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/vue-event-bus_1.0.0_1555340638956_0.1300170762166799"},"_hasShrinkwrap":false}},"time":{"created":"2019-04-15T15:03:58.785Z","1.0.0":"2019-04-15T15:03:59.108Z","modified":"2022-04-04T14:33:25.599Z"},"maintainers":[{"name":"rickbsgu","email":"gbergeraph@gmail.com"}],"description":"Loads and parses js file","homepage":"https://github.com/Aphorica/vue-event-bus#readme","repository":{"type":"git","url":"git+https://github.com/Aphorica/vue-event-bus.git"},"author":{"name":"Rick Berger - Aphorica, Inc.","email":"gbergeraph@gmail.com"},"bugs":{"url":"https://github.com/Aphorica/vue-event-bus/issues"},"license":"MIT","readme":"# @aphorica/vue-event-bus\n\n## Provides Observer Pattern for VueJS\n\nSo trivial its ridiculous, but I use it everywhere and I don't want\nto have to keep re-creating this file every time I need it in a new\nproject.\n\nBesides, something may change\n\n## Usage\n\n```\n  import {EventBus} from '@aphorica/vue-event-bus'\n\n  EventBus.$on('event', handler)\n  EventBus.$off('event', handler)\n```\n\n## Note\n\nFor every handler you add in a component, you should remove it,\nminimally on 'beforeDestroy()' (this argues against using anonymous or arrow\nfunctions as handlers.)\n\nThe component may not get GC'ed immediately and can still receive events,\neven though it is presumably destroyed.\n\n(Interesting debugging experience.)\n","readmeFilename":"README.md"}