{"_id":"@cancunlabs/simple-event-bus","_rev":"2-176d33dd2f7483fc82a6b0e70ab8a3dd","name":"@cancunlabs/simple-event-bus","dist-tags":{"latest":"0.0.2"},"versions":{"0.0.1":{"name":"@cancunlabs/simple-event-bus","version":"0.0.1","main":"build/event-bus.min.js","repository":{"type":"git","url":"git+ssh://git@github.com/francistec/simple-event-bus.git"},"author":{"name":"Francis L. Tec Can","email":"francis.tec.can@gmail.com"},"license":"MIT","private":false,"dependencies":{"webpack":"^4.43.0"},"scripts":{"build:dev":"webpack --config-name development","build:prod":"webpack --config-name production"},"devDependencies":{"webpack-cli":"^3.3.12"},"gitHead":"f38b317ae18548dc4a68dda9f8694251988427d7","description":"When you work with differrent Web Components or Javascript Frameworks on same page or SPA, in many cases the problem is the same, How can I pass data between them?","bugs":{"url":"https://github.com/francistec/simple-event-bus/issues"},"homepage":"https://github.com/francistec/simple-event-bus#readme","_id":"@cancunlabs/simple-event-bus@0.0.1","_nodeVersion":"14.5.0","_npmVersion":"6.14.5","dist":{"integrity":"sha512-0idizWBVhvLXxuQmL890YUwTlsKr0kqpHYn+6dC+VPLX4MZ+AXpp2AltR1mL9G2GmiUqcmH0Zo+AVws9bCdhyQ==","shasum":"c9f948fba2bf5075144bc25af05f4a03ba2c3797","tarball":"https://registry.npmjs.org/@cancunlabs/simple-event-bus/-/simple-event-bus-0.0.1.tgz","fileCount":7,"unpackedSize":11336,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgVtPxCRA9TVsSAnZWagAA8gEP/ApqFQB39ODp6BQUe0u1\nEDW2gHcn5xhce9SiDwBgEK8eWHgy/plbgtDzHeJVb+p7fXEKMpLkrHTlm+n/\nh2I8OqPXQ6IiTNO31X5JDeqkXzof1/eoo4HKOxXYP5qNuSxWX99iWNfEKWmI\nu1MTItSmg0lHUBzDCVeU3BEanwbvVQCTEMhmPow7AoCb6Uf8Pwsy2NB0+mzE\nD93StG/FjjW2661Xn5s2VE6Jm3jzPbeAzzLhvpkUgxGipxwt8PnMMRWHSYU+\nFhHyhF/pFeWY14maS/bMlHHPKF4J/FOzSlQ3gMbWRKZ9KAXyt+EdCES/Vdtf\naWVwOseIquNnTKREfGJpTblo/0uQfp5OXotc6fZJwRy6YhNKMSlaRA+Fmx+x\nvdx4mZvDVdt3fS4MLs6Tts2aFNHpB7iPOaRmcO9/NHK2la9rwMGAyFRaaITW\nQdUJ1D3tp6A5itvZBqUBhDXxBaD28VWHgm1f46ZIStSajcZychzYHHK3INkO\nfEaSfmcEqO34q+C0yzqmI29tu4RIg/dOfhLSEACg/IXxNsRj0aub1YsBzSCL\nQDzFvJBr9A1voiUSYoRhKd9gfNKanzH5FhYGQ+f63InWP1BtRIbMqM6F8Nph\nKYJ4yI3DgUeA9lAqWO/vj3h4k+I3gN9TD8puOR5ag9tqUdP0TS4x6Fdf7vTB\nztnb\r\n=4gxz\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDyeN8taN8QxrMMYLw0/oLG0Yj2ppiZMt/eYxWNjPFEHQIhAP+UlOY7JKWSAIMOFlvpiVcpf1czq1/pNOvRFEYZgixE"}]},"_npmUser":{"name":"francis.tec","email":"francis.tec.can@gmail.com"},"directories":{},"maintainers":[{"name":"francis.tec","email":"francis.tec.can@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/simple-event-bus_0.0.1_1616303089333_0.952573261046932"},"_hasShrinkwrap":false},"0.0.2":{"name":"@cancunlabs/simple-event-bus","version":"0.0.2","main":"build/event-bus.min.js","repository":{"type":"git","url":"git+ssh://git@github.com/francistec/simple-event-bus.git"},"author":{"name":"Francis L. Tec Can","email":"francis.tec.can@gmail.com"},"license":"MIT","private":false,"devDependencies":{"webpack-cli":"^3.3.12"},"scripts":{"build:dev":"webpack --config-name development","build:prod":"webpack --config-name production"},"gitHead":"f38b317ae18548dc4a68dda9f8694251988427d7","description":"When you work with differrent Web Components or Javascript Frameworks on same page or SPA, in many cases the problem is the same, How can I pass data between them?","bugs":{"url":"https://github.com/francistec/simple-event-bus/issues"},"homepage":"https://github.com/francistec/simple-event-bus#readme","_id":"@cancunlabs/simple-event-bus@0.0.2","_nodeVersion":"14.5.0","_npmVersion":"6.14.5","dist":{"integrity":"sha512-lKFrrUcxt3wcERFYe+G3eErgVYabYxmu3r/osu48WCk2KsEEU3B2vbQUeEmOD9dd6V3yGFjzxI528iMDl3WGQQ==","shasum":"63f5ad75354569ff001d985415a6a2d98c141eb8","tarball":"https://registry.npmjs.org/@cancunlabs/simple-event-bus/-/simple-event-bus-0.0.2.tgz","fileCount":7,"unpackedSize":11339,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgVtS5CRA9TVsSAnZWagAAFykQAJgz+FQhi0qh8j9d8ZT5\nAhQW/I49jA9F3Q9EUxSIGtwuQriRl+qugwdseIUs2oxPbalank8n1riDdYL2\nwtYttSUsikL5uDZSGGYQvw43XGaqSTMq9XfjCWz+99LU632QYANfHEVOKIgD\nFUEiNKOUDy/bCvzzhANdGauGbNDH5GbfqaY7rdW1pRpcBib2bjy4rPHNMpLl\nz59vgruHlXtIfuohlvyVL0ExrpCYk+JhYJoMxUP81R+cgQPOAePXQbW/5QKp\nefDYeyrcpOeI1I4l0VbE+UW0YbhTKboh472LMeEXMl0ujlX5EFzvNkrpaUAO\nCFP4OAct6tNlmJZEL9zQ5IBrPq22kmvitKM3g0lrgTU6XBb5TLSaLPY+JkvE\nxt69llxsFHvc/nj0HatHAjqD1yzeJP1m5SMb1fUILRrUKmC6JRD1H56PXWde\nQGG3ny6hiTls/AkIYzrtAUkefsQmxdr7t7YZSmk6AaeRTMK7NzihtGRtXS1J\n0Wc1z6yLcV14cqiiHIzj/eJXwNgF2OQHL8yaKHfkDHHfKjCB21QebdCq4g4A\nJckSv2p+AAa2VDCS7W5tOF7zNE6YjArpe/hkLMiYGBUBwsOamuLNzVs5hHnc\n/UPsHPjmonx2FycuCta4E6rmf6lW5O1iWqIRYJFHj8bOcfEBQwkZgbP+WEF0\nxr4D\r\n=Kw3v\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIBu2zRxLRs2tr8AN1lDA+IQEHsp5LH24U1tsjlKDiu0FAiEA+i7PVNpduWikoUPWWrEt533nB2mZhWCIGj9bxlXaGZ8="}]},"_npmUser":{"name":"francis.tec","email":"francis.tec.can@gmail.com"},"directories":{},"maintainers":[{"name":"francis.tec","email":"francis.tec.can@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/simple-event-bus_0.0.2_1616303289502_0.5670707260149435"},"_hasShrinkwrap":false}},"time":{"created":"2021-03-21T05:04:49.106Z","0.0.1":"2021-03-21T05:04:49.475Z","modified":"2022-04-04T21:36:07.259Z","0.0.2":"2021-03-21T05:08:09.641Z"},"maintainers":[{"name":"francis.tec","email":"francis.tec.can@gmail.com"}],"description":"When you work with differrent Web Components or Javascript Frameworks on same page or SPA, in many cases the problem is the same, How can I pass data between them?","homepage":"https://github.com/francistec/simple-event-bus#readme","repository":{"type":"git","url":"git+ssh://git@github.com/francistec/simple-event-bus.git"},"author":{"name":"Francis L. Tec Can","email":"francis.tec.can@gmail.com"},"bugs":{"url":"https://github.com/francistec/simple-event-bus/issues"},"license":"MIT","readme":"# Simple Evet Bus\r\n\r\nWhen you work with differrent Web Components or Javascript Frameworks on same page or SPA, in many cases the problem is the same, How can I pass data between them?\r\n\r\nWell the answer is, **`Simple Event Bus`** :wink:\r\n\r\nWith **`Simple Event Bus`** you can pass data beetween components developed in React, VueJS or a simpre HTML Element.\r\n\r\n## Usage\r\n\r\nJust add the script\r\n\r\n\r\n```\r\n    <script src=\"event-bus.min.js\"></script>\r\n```\r\n\r\nand then\r\n\r\n```\r\n    window.Messenger.addEventListener('chat-message', event => {   \r\n       console.log(event);\r\n    });\r\n    \r\n    ...\r\n\r\n    window.Messenger.dispatchEvent('chat-message', { text: 'I ❤️ You ' });\r\n```\r\n\r\n:sparkles: Enjoy It :sparkles:   \r\n\r\n\r\n\r\n###### Original code: https://pineco.de/creating-a-javascript-event-bus/\r\n","readmeFilename":"README.md"}