{"name":"nanoevents","version":"3.0.0","description":"Simple and tiny (78 bytes) event emitter library","keywords":["EventEmitter","Events","emit","emitter","event","pub/sub","publish","reactor","subscribe"],"author":{"name":"Andrey Sitnik","email":"andrey@sitnik.ru"},"license":"MIT","repository":{"type":"git","url":"git+https://github.com/ai/nanoevents.git"},"engines":{"node":">=6.0.0"},"types":"./index.d.ts","module":"index.mjs","bugs":{"url":"https://github.com/ai/nanoevents/issues"},"homepage":"https://github.com/ai/nanoevents#readme","_id":"nanoevents@3.0.0","_nodeVersion":"13.9.0","_npmVersion":"6.13.7","dist":{"integrity":"sha512-5QRYu+RiSrJsLKZtowXKBaSfWc9/wfUv5UFtBHardUgxlsqkIFy96iXxNZCSlEKYewUmvQVaVoIcSvhf4/4Yig==","shasum":"a4720695617fabe8e48e0a67d52fa6d3c9a39456","tarball":"http://registry-npm.ywwl.com/nanoevents/download/nanoevents-3.0.0.tgz","fileCount":7,"unpackedSize":9362,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJeTvPlCRA9TVsSAnZWagAAfKsP/0KUA3cu/4NeWlMYoKmY\nscKKEE914QKSBIhi81Gb8qbI/mdNfqD5JZ6f/AigxOUpKKr9WfhQyf0PA+IP\noTj0pblBirIuB4nfwdqt1k+LCl7Oc8F6OroaqWLCTQwdnVnzsyfix1ABI894\no18MIdJEaA/GnswdzaNEjdGN69HGIRf9TSL8fwrV5EX7S8CMLydJSh1g0+f8\nj5B+bKvwvb5rI+NkHPhqqlhnXV9LbFrDiNtJXLWiyfkwsA/9eMEFUo9wfxvd\nS1FAWjdHAql6qWhOvcojvv+l8L3OED2rWAEqOcGOEixEp5/rsJltzjIs90AW\nYKUZKh+7LkXSN9rHaVAWHTaCrbUkljg4f1mZz4FjFSFUNZZ/BQePP08cRC8X\ncUQh97iASFX4DR/+Wcho9dfx6iH9V26pGCl2RN9j3mRPtjxMy1Pn7SqM2tNN\nJ6BBiuHdy+B+N1tGm5Dg7/PYmPG4uGqAnSDZKH89PWmnyQaS5ArQPq74N9gx\njPV0cjLPrKLmKrtnrZOQ8rS/IDXpAQ/8iWZDdDhtCEoI+Ee0Hvgu5uyrkGIR\npvfLd8tdIwfrTQlWTqWHObbfgnJhQ+Hsxq2Vl/JjPUmRFIohX6RZGS6/Pmc5\nxQSalQaUq4oxZi5HXpIdZxn9BV52r9hPLU0WwKNoj/zjHbzd5Pf3Q3yO+orN\nBFGL\r\n=SDe4\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDQXxQWLIqEqhPjHiwS10uDcjN5SZOaIA0PaFMJeppJ0QIgbthKt7foIOpjlNyiukrv0P0fpT7IkV5Fgqi5xST/Mbc="}],"size":3848,"noattachment":false,"key":"/nanoevents/-/nanoevents-3.0.0.tgz"},"maintainers":[{"name":"ai","email":"andrey@sitnik.ru"}],"_npmUser":{"name":"ai","email":"andrey@sitnik.ru"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/nanoevents_3.0.0_1582232549156_0.9176288082125896"},"_hasShrinkwrap":false,"readme":"# Nano Events\n\nSimple and tiny event emitter library for JavaScript.\n\n* Only **107 bytes** (minified and brotlied).\n  It uses [Size Limit] to control size.\n* The `on` method returns `unbind` function. You don’t need to save\n  callback to variable for `removeListener`.\n* TypeScript and ES modules support.\n* No aliases, just `emit` and `on` methods.\n  No Node.js [EventEmitter] compatibility.\n\n```js\nimport { createNanoEvents } from 'nanoevents'\n\nconst emitter = createNanoEvents()\n\nconst unbind = emitter.on('tick', volume => {\n  summary += volume\n})\n\nemitter.emit('tick', 2)\nsummary //=> 2\n\nunbind()\nemitter.emit('tick', 2)\nsummary //=> 2\n```\n\n[EventEmitter]: https://nodejs.org/api/events.html\n[Size Limit]:   https://github.com/ai/size-limit\n\n<a href=\"https://evilmartians.com/?utm_source=nanoevents\">\n  <img src=\"https://evilmartians.com/badges/sponsored-by-evil-martians.svg\"\n       alt=\"Sponsored by Evil Martians\" width=\"236\" height=\"54\">\n</a>\n\n\n## Docs\nRead full docs **[here](https://github.com/ai/nanoevents#readme)**.\n","publish_time":1582232549314,"_cnpm_publish_time":1582232549314,"dist-tags":{"latest":"10.0.0"}}