{"name":"nanoevents","version":"5.1.1","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,"type":"module","main":"index.cjs","module":"index.js","exports":{".":{"require":"./index.cjs","import":"./index.js"}},"react-native":"index.cjs.js","bugs":{"url":"https://github.com/ai/nanoevents/issues"},"homepage":"https://github.com/ai/nanoevents#readme","_id":"nanoevents@5.1.1","_nodeVersion":"13.11.0","_npmVersion":"6.13.7","dist":{"integrity":"sha512-7gEs1Gv3JmPXHoUFCCq8RmFP534pqQZTD1MyJCxs8zDEW6xbrSXmJyF4mxhbw2Jb6Spvi2Xd0pue878zdTg27Q==","shasum":"8d6538079d35bbde308e30758531a259ad637113","tarball":"http://registry-npm.ywwl.com/nanoevents/download/nanoevents-5.1.1.tgz","fileCount":8,"unpackedSize":10389,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJedXzJCRA9TVsSAnZWagAASzYP/04MnveoIrMf/gv1fmZ2\nGTa9KS9RNQSYdyzV//HbdcZTp5gH1B9wnHKkPb5aZ9iTs5vAiBOkhX/aT/MB\nAi7YKBk57eHyJrq08yp6ABILnrSnB495zdcQw+PAvsD3oLI0QSVVboHx4+XR\nf0YRVcKLlBti9N64WKaLWJ4ACMk9AfUWl9Nh1Fzfm5qMFoqZPvgIW411rN5L\nXryQUJBQGXDy61UtPTt7i6LKJQE3XbD+Ji2t1Z98N6xvtkCeCRHbnPd3dYDR\nnWrpE+EIdQDp9rok5ODaC3cHP4Q2bV0nFWqNg2rdXEuuHoPLXS05aGx8K8pU\nX64cn2BMeSHsNKW6tjU+hVQVaFFo82ep84taVG9dYXpwhDPRLPkUt2NpF9nd\nF2Rxc2Vw4pWrixsXpSOw8xzVDWoiM/zm3dWI+6464acAztsEXwSa7JkDu0ip\nenUzR+2sGSye9jR/8q5chT5UzNWYtFJvJJU2sn7npN+8Xdws6wRPA+yBKc5o\n0jXXYdl1r2OUC4biD4T8ldNMrOiwxI5YDGEvk40/tm6MGx8D3DXL64bcHo8H\n1kXobGX9OWZ41NyJKdpsLZGqHNtWRxmyxWDycU5MSFT6glviq+L1uA05LcCV\nLnLhhyfV8BaPXjjN59s9BYpJf72aCvz7jx4JCtCWIiVGs2u+48G7RpEPAnn5\nuxIQ\r\n=NBB9\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIHIqALezTEanBp5hQXTKqCp1Xj32SnreBT/iz2IQQZIiAiEAjiMh1hXMBOnuCr9kOe94ra+i+lr5/ZgfnviJ+8HIVSE="}],"size":4195,"noattachment":false,"key":"/nanoevents/-/nanoevents-5.1.1.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.1_1584757961465_0.6358319784386413"},"_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":1584757961623,"_cnpm_publish_time":1584757961623,"dist-tags":{"latest":"10.0.0"}}