{"_id":"events.on","_rev":"2-5260e7f516f734d81f5fe415506e037d","name":"events.on","dist-tags":{"latest":"1.0.1"},"versions":{"1.0.0":{"name":"events.on","version":"1.0.0","description":"ponyfill for Node.js core events.on","main":"index.js","scripts":{"test":"standard && tape test.js"},"repository":{"type":"git","url":"git+https://github.com/mcollina/events.on.git"},"keywords":["async","iterators","asynciterators","events","on"],"author":{"name":"Matteo Collina","email":"hello@matteocollina.com"},"license":"MIT","bugs":{"url":"https://github.com/mcollina/events.on/issues"},"homepage":"https://github.com/mcollina/events.on#readme","devDependencies":{"event-target-shim":"^5.0.1","promise.allsettled":"^1.0.2","standard":"^14.3.4","tape":"^5.0.1"},"gitHead":"3c31f35e324c1cf7c55e34cebf97c3a39f54a9be","_id":"events.on@1.0.0","_nodeVersion":"12.18.2","_npmVersion":"6.14.7","dist":{"integrity":"sha512-MjXZuAyEBpip6PDFqsgdDy68/9lydEygGb+7+3YttQMoM29FwKuD0U7SoFgFyOps+N3BEAYlLRHiqqP5MkqJfw==","shasum":"22f0b178c8e8d43abea534669778b802cab42b0e","tarball":"https://registry.npmjs.org/events.on/-/events.on-1.0.0.tgz","fileCount":7,"unpackedSize":13795,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfIw2nCRA9TVsSAnZWagAADPoP/Rv8Vdi79rvgmTo6vCOW\njcI39e0yfAZiST59+AuvxKD8oxkdkVDr0qOKORYL8wshXOQhR5VtPI6BJ/NC\nvloD3ZfgoKA19WBpyIzc752hs8in7/pufaHa+zOyrkbD5gJfyqlCLhrtvMWT\n0e7nTgoubrL+PebvEInp7Air/jsP2SEkw63VeguaEGhyU8XymS9edChVJAVo\nadgXgxRya3oTpp4E0+2uEs0oHOEymo0p5Vzpbu7iZOtfQMhNX5qLKAuRzRmN\npmAwGkW3ZTLXHnmWvaUX1fk1JmMIi15uvHmTRz3WbwTmmN+qdDuApiALaPML\npy7weI9SJnsiRiXt3+9jUoZe8JMchBihwrOqNBnXc/Rx7L895sTroDLEHP9d\nkx6Tq3uHa5fWywgERh2tx2W6GqDrTWlLPOIkR5fMSLfmhd4M61WKb4fDb6Wc\nWbj4rorztDXT6zAGRwaz3Fbrojnc1hTiRxkfCr7lXShWQm+YTLskLajD41+H\no6wD09KMA4gBm63sX7s9c8pNxV83Qg/YHr4oFn1f1HsQk6i5PgkDAmRr/i3w\nSxxz75eesGibuH4u748dPA7pHti0EjU/qHDJLrdgRCmHUnK296KqP2F73m4b\npQQNEa85poiTI8KumLLyyDhOOp5XibGKhucuW1w/KMopWShsY5Z5gbi+mVMX\noOAe\r\n=mH3L\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCRlo4puuHVRFQcWqUFdxmUxvO/8SmaFIibs74FfwQrtQIgHAFP369oYZb21aOjdlxd6hPsMCZE8YPbgWR9mh9O1J4="}]},"maintainers":[{"name":"matteo.collina","email":"hello@matteocollina.com"}],"_npmUser":{"name":"matteo.collina","email":"hello@matteocollina.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/events.on_1.0.0_1596132775360_0.060481255051307414"},"_hasShrinkwrap":false},"1.0.1":{"name":"events.on","version":"1.0.1","description":"ponyfill for Node.js core events.on","main":"index.js","scripts":{"test":"standard && tape test.js"},"repository":{"type":"git","url":"git+https://github.com/mcollina/events.on.git"},"keywords":["async","iterators","asynciterators","events","on"],"author":{"name":"Matteo Collina","email":"hello@matteocollina.com"},"license":"MIT","bugs":{"url":"https://github.com/mcollina/events.on/issues"},"homepage":"https://github.com/mcollina/events.on#readme","devDependencies":{"event-target-shim":"^5.0.1","promise.allsettled":"^1.0.2","standard":"^14.3.4","tape":"^5.0.1"},"gitHead":"ab269053dc3e687bcb9e6fec228d944ee5aaef86","_id":"events.on@1.0.1","_nodeVersion":"12.18.1","_npmVersion":"6.14.6","_npmUser":{"name":"matteo.collina","email":"hello@matteocollina.com"},"dist":{"integrity":"sha512-yT4htzImIQAf7mFV3heqTRNVwysZIgQjrribiCYQk152gcG6shz/WU/6xVGr0oDzkzcDPhMcCYy4lEKBiadSRA==","shasum":"9fe6c69c0c5da10d4988eeffc476f6f9eeb540a3","tarball":"https://registry.npmjs.org/events.on/-/events.on-1.0.1.tgz","fileCount":7,"unpackedSize":13916,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfI9bzCRA9TVsSAnZWagAAm1cP/iHo3qgeUfLE//2s/UDL\n4aYYAZ5WpoLc/UtBeUcZKpccZSeETb76gvHFwtfiNUIJHrI8IgjUCiNHzglr\nhGIbvg86Co6HUVfqXU6UJEfsVrlL8OKtE8K3JJSzy4H5s2879G+GszjD1Z+e\nNccE1+IxpME4t6fwsukjB9N8tEMS73F5Pu0BNFiLcV1VBNCVlKerQEAzeCJO\niLYBnK9tK+qajIg5BX5eEzatkNi2DbQtQzxHMQi1UalDGGo6GL8hS4IyRnYs\nGxGSIfZmMne6QbEPb5FnidWgXZ+z208M+3pc3qKp/JDdpkcDQElTQK1/dpki\nAGFe6pxnIRCwmNAuGVj0iiwq7hq4vIweutJfstwsfqPEGBdMTllER4d5C0p1\nSLLPlj/4OLs0Nn/b2vJ2heD+rSmMwVvSgoSfZ6zEKzfIkWChRi1DfS1yUAsM\nfvkx8lW+WolLJ95zkpNny/OFj2jB+V5uMkgjmeauOZJkUvbYnmCQzodwzKhW\nRLUqfJYg2o7AyAlwGoI40ZTiF9MSJBhs4CBTcX9tlN1QryzAdXhSpBSthnAc\nZpgNaQLf8dVq3qI5NBE4qZQn6KiFoSLSaZSFgfenId6QqRIl2zWAoPC7Tlwj\n9GceONUgIjBwY5FaQy3n1xvCie5DFWYHLEYhU167ZsSuWdamZE7uqOYCfu6v\nD4kp\r\n=zvxW\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIEcUnixfDbUndSgEDVTjOs1clyTgzGjo5IDLhRBKb5k5AiEAidED9soHoyo3rvBvo2IhsdjfiqMfzPZLsRTyX1b6sLU="}]},"maintainers":[{"name":"matteo.collina","email":"hello@matteocollina.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/events.on_1.0.1_1596184306882_0.6943357953542584"},"_hasShrinkwrap":false}},"time":{"created":"2020-07-30T18:12:55.360Z","1.0.0":"2020-07-30T18:12:55.456Z","modified":"2022-05-01T19:44:54.147Z","1.0.1":"2020-07-31T08:31:47.022Z"},"maintainers":[{"name":"matteo.collina","email":"hello@matteocollina.com"}],"description":"ponyfill for Node.js core events.on","homepage":"https://github.com/mcollina/events.on#readme","keywords":["async","iterators","asynciterators","events","on"],"repository":{"type":"git","url":"git+https://github.com/mcollina/events.on.git"},"author":{"name":"Matteo Collina","email":"hello@matteocollina.com"},"bugs":{"url":"https://github.com/mcollina/events.on/issues"},"license":"MIT","readme":"# events.on\n\nPonyfill for events.on for Node.js 10.x.\nUse Node.js core implementation if available.\nSee [Node.js own docs](\nhttps://nodejs.org/dist/latest-v12.x/docs/api/events.html#events_events_on_emitter_eventname)\nfor more details.\n\n## Install\n\n```\nnpm i events.on\n```\n\n## Example\n\n```js\nconst on = require('events.on')\n\nconst ee = new EventEmitter()\nprocess.nextTick(() => {\n  ee.emit('foo', 'bar')\n  // 'bar' is a spurious event, we are testing\n  // that it does not show up in the iterable\n  ee.emit('bar', 24)\n  ee.emit('foo', 42)\n})\n\nconst iterable = on(ee, 'foo')\n\nfor await (const event of iterable) {\n  console.log(event)\n\n  // this loop never ends, to end you need to break\n  // break\n}\n```\n\n## License\n\nMIT\n","readmeFilename":"README.md"}