{"name":"nanoevents","version":"5.1.7","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","react-native":"index.js","exports":{"./package.json":"./package.json",".":{"require":"./index.cjs","import":"./index.js"}},"bugs":{"url":"https://github.com/ai/nanoevents/issues"},"homepage":"https://github.com/ai/nanoevents#readme","_id":"nanoevents@5.1.7","_nodeVersion":"14.2.0","_npmVersion":"6.14.4","dist":{"integrity":"sha512-erZPLYnJMmzD5OeXX+ZrfaS+KwuclhvrHbx8okK89Pyb8omSubguKVFyJHlX7Q2k/F2mgv4QoH3cTDdua6j18g==","shasum":"4819a026268725fb0cbf45a36bd1a4ea2737e63b","tarball":"http://registry-npm.ywwl.com/nanoevents/download/nanoevents-5.1.7.tgz","fileCount":7,"unpackedSize":10033,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJeuqZBCRA9TVsSAnZWagAAvvAP/AuRhvJEfm0bGlif8lTx\nA2fHhXXuPEkixRuLTTL6nqnNVcJEGCLeysfkdukcTHMnQS0U3tPDmGw10jwT\nYOoHn3DWrxdsv4jkD2QtaAv6JA14raDgDVt2RLonQ1VtzKZD2Wtk9zJ6IWpG\nECyDw9gyLjLIRgeH8eqtgNtLkzGGPpNOzOnGPmVlmDGC8Y9zIjyAQ9m3pD2a\nQfNPEuoHgRNskkUKo1LT24mzd2myLfsZyGUBZV5ep3tEzLEfpnIHm5dhHTcw\nmPrmmmIJ+ReWH9bvTV8V4JNGyN2r1w2VvvKsshTj5unvyDeXgdlW7BgGSQTl\nqFD1GapKohEdOgJ4KO8YqpzaJm6cOFKrqTpDOEBfTl/kb4AnvsFMSVWZr4Ub\nFdHktt6X6nE59RrpcXJrVe4xubjHiqvtIcnsDC0OSaKINe9dYgRD7/Bi6kQK\nvJdwH0bHyW99onf8XulPn/8SxfJSoQn86WAIeCHHZhtXoNSR3+9PnWNQFfU5\n3kCLxRor78GyJeHx+pvTqv+phNOfW5YPdrQsCa6Fh9D0hoqlxkc/SCtb0Fge\nGJOd9uQbTT1BXcUIh6f8WFzo4rdrqke3TVgMsNUSVwZhKcWkVfV1jXJPBhwY\nWi289n0/kpqOcF4ECHytUYwhn+gSzzxKJqTIz+mcIcGtTRa8YP4oWUvGPMwT\nY23J\r\n=N0xl\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQC38MjkqsT76BMkKGJ536Fw5wBsxvm7C+XFykt29R+yzAIhAMcekEWKQzN8SloM4Q2V91wdZwLLtpXInk2dtPQJ9W7I"}],"size":4138,"noattachment":false,"key":"/nanoevents/-/nanoevents-5.1.7.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.7_1589290560404_0.9573385570565125"},"_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":1589290560576,"_cnpm_publish_time":1589290560576,"dist-tags":{"latest":"10.0.0"}}