{"name":"nanoevents","version":"4.0.3","description":"Simple and tiny (75 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","type":"module","main":"index.cjs","module":"index.js","bugs":{"url":"https://github.com/ai/nanoevents/issues"},"homepage":"https://github.com/ai/nanoevents#readme","_id":"nanoevents@4.0.3","_nodeVersion":"13.9.0","_npmVersion":"6.13.7","dist":{"integrity":"sha512-nn0vjSD8sou9DxAsBpxx/U6CJW5qs8YUYhUHXEZ7Qm0Y1VMU/pSw383Ez+0JsrQ9H1C4P++5wc5dVd1qhue7EA==","shasum":"36ede465e3440d82dbbd87020dfb7fdcd226132b","tarball":"http://registry-npm.ywwl.com/nanoevents/download/nanoevents-4.0.3.tgz","fileCount":7,"unpackedSize":9544,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJeVW8OCRA9TVsSAnZWagAAQwsP/2SGQMNTa3McGCFMMKpy\nEGlqJdJOtjIdN5M2bmnPTuMdgoDXMxd3aBHpdwNe6a1y2K69qv72JlEZhlCO\nsnQuowyOKbrItzQOJAEUN2p3qzk2jpjp3vekS/Ftl7Mc2DYe8fbXSafr92Lr\nnwyzB0jP4qttcUsnllrbAgCJZBPMSorMRioCMMbU1/d0490w65x/FuZFvdcp\navlj7ZuNM6hsQM8asdxeSkOFzWM59rq9BtSeY3eS2Idl9ziDRXCHMS6fe2yX\ncJ6XO6ukSaehLYzH0nrhR3WRiZ5h4wf1GxOS13Vo3N4llgJsrEoYCoL/ExD+\nZXhaiOp4pPu3AAPZsSGizcs1LmDbGxoCp38rrmge4AsSK3U78CETPQCd9YpO\nwN6MRKm1p4ALiduOqw1vhYvCJHkzX9FmFFlXUNsAX1OnsGq51yJJTbWuEHmu\nqQRI4ofWscBr3KktsijM6QTQW5jrTcG9Fg90lyanbIe3mM/lQEExraeo8dL/\nJh9VC6FskwsNGzXExI/mttZn9Rjp+ce/DftNl13fAyIhK/2zz1c9BfpGwSOK\nkP5VnmjIjG7hok9uOYC/2rMU1O32jS7K1Qr3cgaMl2h64IYaI8XzeiT7Yt6F\nOg0tiRj6YvLW3KaYJBIzlyrwBNlyPGaZrbNToVhsvLnI4iv1PUouiarI5o1J\nQ57c\r\n=Ev4H\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIDNtOcyicrErJprzE71W8hYQb69wKJPfORXaCrYeaG8YAiBZJ3KEvgJ31BniRuoQpueaXbcDYEv3AORcOQWzQBM2RQ=="}],"size":3968,"noattachment":false,"key":"/nanoevents/-/nanoevents-4.0.3.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_4.0.3_1582657293682_0.8013746398385277"},"_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":1582657293888,"_cnpm_publish_time":1582657293888,"dist-tags":{"latest":"10.0.0"}}