{"name":"nanoevents","version":"5.1.4","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,"bugs":{"url":"https://github.com/ai/nanoevents/issues"},"homepage":"https://github.com/ai/nanoevents#readme","_id":"nanoevents@5.1.4","_nodeVersion":"13.11.0","_npmVersion":"6.13.7","dist":{"integrity":"sha512-akaNqagDmJCHUwAq5hnBGo6I4aCMm8DFwBYyRpLcILlOe35ayoGGwhFmr3FOLZMHZfOTh+J8s1zmM5Zg8PjiiQ==","shasum":"d36c806265df0109e718b7f1ed995e5d354d3ae0","tarball":"http://registry-npm.ywwl.com/nanoevents/download/nanoevents-5.1.4.tgz","fileCount":6,"unpackedSize":9343,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJeeS3dCRA9TVsSAnZWagAAwrkP/26usnwwWRHo9Jzq3Zlx\nqN4Gp3ajHsFdxXE3A8cyQBCq6Sqc1yEkWs45fC4UM/ttys52SzI8Y+ftfKGC\nQcSdVIi4xq7cWdfW/c0nv6BCj8e7ehGlPQADJ8A/HsXQUCiPTtPS9bpvAmRr\nt3kQ7LAl3s9BniEIa4woSEGcTO9bhscLTNsk1hV5vL7+M1L8fj8IuQpDvlPp\nNTRP5qZ+N1cL11W3/nN5uzPJamRK+QQfGrm9Dz+PXtbqqW4cV+CJS3f9eolu\nRVXdg6Uc4vxMWfKVlascQCIEJtB2sYiJMaWKWzhl70qnD/YYqJNizAB83n2p\n3tlUzp0ofvRMoRmjLFN5v/VbhPTc3a62idO8L5s6rltNcZuVP6Zc2cRZ7VCq\nC/eIt8H5qrYPN0PfRSuQFp9OOTXCi/Gw6wamb2g2FZYTvRVqdFfg7TEGoIzK\ng6Dc9gPUkkYxR2JlWvQ77HZEQAxXGU8jyvi3xyNyTckeN6lAK9eOI/RcfsE8\n1OwHSkJFT9H3GhBXdYBwuM0i8PzejJ6hod+95VFX1h5kjgLGusoWdQqKIhoD\n8p0JlJgr9bhixJG8AL55Lacix5t7NRwQL5NoIVUl4ryssWwNhA9GBBqVBxsP\nMWV6+1bzuj5fwpXFiom/z9y3nhxmIU3LKSxLqfPOGJV77izqMDoo9mPVJE3F\nkSIL\r\n=F8Sn\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQClX2LZKSQA/jO9cmqi4QwSRnlDU9+oe0i6oZ7R2AS+rgIhAJBBJ6P/w2b2ZNisOE1qZ2OsuC1wJti0WQfheYPD+x5N"}],"size":3997,"noattachment":false,"key":"/nanoevents/-/nanoevents-5.1.4.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.4_1584999901219_0.3963037086857264"},"_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":1584999901403,"_cnpm_publish_time":1584999901403,"dist-tags":{"latest":"10.0.0"}}