{"name":"nanoevents","version":"5.1.2","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":{"./package.json":"./package.json",".":{"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.2","_nodeVersion":"13.11.0","_npmVersion":"6.13.7","dist":{"integrity":"sha512-yv3xXYa05ND3pCDpA4YlvR3LxVO75bvxPsMkKTS/PEfZJHxDoxCzW4O5+Aac96WbIJm9NhJWqyLEl/SKTOub3A==","shasum":"63df1b87a01616e43f2034389b45c5855234b910","tarball":"http://registry-npm.ywwl.com/nanoevents/download/nanoevents-5.1.2.tgz","fileCount":8,"unpackedSize":10468,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJedl7mCRA9TVsSAnZWagAAcOMP/ikWXjiyectGV7askYqU\nx1S7Du4nXCLAIpprJc9r25FmL/lj5LHPo8q/kC1xzOwbBQCsl8ulKHKPqw8K\nI5YAA98IPFIZ34Rnekyf8pjnXWepu/31t077dPbNdQhIgjxfif7ElpAL8ydd\nxeZzPGOZyey9d1Akx5qKRkbCOjBi//rCB17qllvnDA1KBYV8z5dYBX9NMBBY\nrkqTKBElIREZcPYwyYTuGMIPuLzC6WhPI2WS02VBHPlM86Ui6/0RlBKAqgfr\nuohRb3/BGg99pdj86HGXtH2mm034QAWVsCJeVGuupEskbuhukmz6Lmsa1MBr\nd7djR1pxh5BSF82cnXFCqTFh17wVxmOnGgwVniJoxvNoaye2mqyWFqr+78sh\ntMH+LdbFaj/6ePN1sCqviAhK3wqEZcSP4zJefDAaXzgk/NzfZsvoFjbQdtX9\nIwgRpGlZRnmusW4yswb1pzNNSjXLdCn+hIW9S/6BJj0TlZSVgdVf2sYT+A6s\nUm8qdY0odd0WC9Bn64fjDricVihC/KhMSVPhHyE9EB698gB2lG5xy61ZjWGl\n97/6hokcwdb3lIGs3qvKL96HlOowsdXt1ObrfD3+do6+GZnf0+fqvZcVY+WX\n/bchqLN5Ae1GJnfEfHTJOdxkKdjBcHC/r+iJOK0msA5hkUvTQvAMoHOap8r7\nW3ND\r\n=OCLM\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIEeXFbKiUk5x5jbojoMEa+II9aKs1OCjRAYCClZ1GFJYAiEA6+/6/mj6ki4G9Lzd/lhO5EDyQLa0BS2GJrrq/gAHLjk="}],"size":4211,"noattachment":false,"key":"/nanoevents/-/nanoevents-5.1.2.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.2_1584815845614_0.10060528639006483"},"_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":1584815845781,"_cnpm_publish_time":1584815845781,"dist-tags":{"latest":"10.0.0"}}