{"name":"nanoevents","version":"5.1.3","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"}},"bugs":{"url":"https://github.com/ai/nanoevents/issues"},"homepage":"https://github.com/ai/nanoevents#readme","_id":"nanoevents@5.1.3","_nodeVersion":"13.11.0","_npmVersion":"6.13.7","dist":{"integrity":"sha512-2QPfMFk45l2oSb5k6umas2EMP9vAMcwB+dwP1A1OZvug5KlSJONoSkk3LUd7NS7rPOP6I7u/kdthmJ+9aNbDDQ==","shasum":"2dffe14e248d4e5e11beb738744b308404f958cc","tarball":"http://registry-npm.ywwl.com/nanoevents/download/nanoevents-5.1.3.tgz","fileCount":8,"unpackedSize":10224,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJed/SECRA9TVsSAnZWagAA67sQAI2EGv9Mkwqdejxj2EK1\n5pRm+wSY92cMxNCg7+TZ/gHH5vCjalvQ6PRyJcpMdSUj7Ng+gehEflcyPP4w\n02CTVZxjof8LKcj+RN73CXU4z7tr1r50L9ztt5ZyQoc9W0o3FNmhcKjYk1mh\n7KNwPQOYHKyBoaSOaKIjKxzZnRidrReQhymisCnjZEa/wLIoJyf3wyfmktMA\nuPTH2BE/FfeyX1z+N4XtIVWXtfeCoGDttGDx0xc+eChNOitLwvQ3RQ9poHSE\nMu9dJgs4y0cWGv7qTuMyJL96r05OQYes1nk8IYv4eBB16Ge4cOdGoPCeX8RO\nMis3WpMwoivJE8zEiS3MMy8WNfeJedSStAku4DhtYIGel6HYaLL2kBRfdo7/\ncBDXGUbiX3LifVAtAOM9UUucTqXS62nbKhpoX6SqxRHa2gHV1QZF3BtxQAf7\n6taXOb2B5fMiqjrbnVNz9nUVcFqg14gHRNskgQTHMxYUMPTI8O3blMGhReIV\nY7DWAEGO+wMiTAaHpAxkW2hDkgxCPj8eFUqzPPzwJOxBz8XkYSwgHIQaQz+K\nQWIBZpBXtirB4gLPxTyDvIivZj36ZWAtVZTqw16KM138dPcaR/1HQLA64pFp\nisS9D+NSdKURdrqt9F0RhMN8Yuib8OBnbcyksKfOiMgihTdUNVDTdgn29uBP\ngaRG\r\n=Ux9I\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIAh/gdlFBgKazSAvVyvqyLEYuOB2xxAupuMKLZ4Ozs2+AiEAkGuV/Y8hCZ+h3URVkMlbPTylUaDqf0YrB9MEg2Ih1Ik="}],"size":4097,"noattachment":false,"key":"/nanoevents/-/nanoevents-5.1.3.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.3_1584919684338_0.8123068308487356"},"_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":1584919684432,"_cnpm_publish_time":1584919684432,"dist-tags":{"latest":"10.0.0"}}