{"name":"nanoevents","version":"5.1.10","description":"Simple and tiny (72 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"},"sideEffects":false,"types":"./index.d.ts","type":"module","main":"index.cjs","module":"index.js","react-native":"index.js","exports":{".":{"require":"./index.cjs","import":"./index.js","types":"./index.d.ts"},"./package.json":"./package.json","./index.d.ts":"./index.d.ts"},"bugs":{"url":"https://github.com/ai/nanoevents/issues"},"homepage":"https://github.com/ai/nanoevents#readme","_id":"nanoevents@5.1.10","_nodeVersion":"14.14.0","_npmVersion":"6.14.8","dist":{"integrity":"sha512-QOE78g63vQ7V1JzhOLP8UNlaLOF/llDtfUhCj9GlbhQQc0YdPi5GNJKZdeWE0fvDtGF39un6uSf7RObeBm0eAg==","shasum":"9165199eed228c4787086dd1ea579b64257b8f8e","tarball":"http://registry-npm.ywwl.com/nanoevents/download/nanoevents-5.1.10.tgz","fileCount":7,"unpackedSize":10669,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfkjx4CRA9TVsSAnZWagAAHqQP/2YpsDJYLbjwt1uwuF/+\nXySntm7Oex2/tDsNnH4EQM74do3OBRI1FxWlw2yNtw0+AdxDIlIqopVPyKQt\n6Nb5GnWJrexXVCYA01QEZU/YFQcbm89kdHUDTgI//sRycHEJID9H0NuFP0uy\nibrAKFCQbZVEpdE+YFyTP/bQoKOg1okoauAm2odlBioNJByGWy0UMiCA8Rkr\nJ8ylPJRp/xaVpO5yOiB0CRDsNupe7wDuU0VUwAkTg3/NjGQKYDJf0x6vs/uY\nYX+7Mv8yjt/dEzN36u2ogNWYyL6YTSJbLieyc45JSbGpNadHNE0cYrhE+n57\ndXNKzzsZlG8ZtrSy5xT0h/Pi8xpp54L5Ulxqyfn3SfD3xm+M/u5ItFlVtWHS\nyFAcg+9RS6aiR1gKLpVCimLx/mb1L/gCLMLvaQ4LN7q7Zek+4M2IVpwqn+0V\n7rHyio2G/WTxyj9bWySkYN3rAc0ZOfIo212qDFWj7sn5r1GwQ4HOq/PH+jsp\n5oo7hu+urHFAvAWJLSpcFngD83CiOjmhreodjpLTMIjHUcAnBh2zmqBzj0Od\nlSKQNhSNMlT1LOjH05mOPQjKnlUaT40JFDkew1XgHkrvMg1wA2xV02hxEKRy\nJxTmsHBBTyQxj+KGycw3r3R4Yrp1cQAsnsVe5IowxD+ZF/EDKnWXMLnXYTG1\n+MhX\r\n=g8Y+\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDBQ0zFhhizSL5Wk+JAtqEdPk5MgpcoDbhVFPA1aJcKAgIhALGcraX5Ioxi0jnB7Yg3LmaI40Hx2aVpJCZQeEOQPJb8"}],"size":4294,"noattachment":false,"key":"/nanoevents/-/nanoevents-5.1.10.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_5.1.10_1603419256291_0.666880643361504"},"_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":1603419256473,"_cnpm_publish_time":1603419256473,"dist-tags":{"latest":"10.0.0"}}