{"name":"nanoevents","version":"5.1.6","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.6","_nodeVersion":"14.2.0","_npmVersion":"6.14.4","dist":{"integrity":"sha512-XLslZp5iHmjetK9qJcz/b13S+HtQ4aDnmqJOcCz/2IUnSJhrrdCSx2hsm8gvMVOvEOuGIFuOZUxVptpv90nwtw==","shasum":"6ef19695978220ebf4b84c85340abe439c7f9687","tarball":"http://registry-npm.ywwl.com/nanoevents/download/nanoevents-5.1.6.tgz","fileCount":7,"unpackedSize":9974,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJeuY+jCRA9TVsSAnZWagAAOF8P/0J9jmI1hwRSTWz9l55m\nNc5XoFlJkoG2RLh6r/yhfCRgCf8jRRFhu2V6EZzMBMW57ioUR5fWmDKXtpdf\nHqmPvaQXm8U1JRuVGi/7P7Bb62rTAjF3X3gmw1D4Mnm2E0KY0FQua+V3N6Uq\npMRMZJWgWjdnZNOUqWnvlqsvHsDZjcwbHwF622WLdLkQx4g52PmK+BD3ecnN\nkWIqVCaFmI023m2oxKRvpg5bQepwPR2r1xJIoNY4oSQ2al+RXNHdcUtNyDlX\nvU2WvIVoZFMFX13jfNwQWvie+Kr+vZX6ysMOdq1170VswO/FT4MaBcGprXIy\ncHuDyvWAQmzTvNjf+Wm2DcLTfCK3jaPJ12n5MkcVuJlep57wKFp6dBJ21gdA\nT7sqBAHcVRMDVq+jDLqBu0GoprWFBHAR71beJxa7kxSrVXyks+DRxKxUdyRc\n41WiK5mcGksXxTf6lJauXUcQd50HSKIe5/NPdr8g+Fp7pDEaF51312q9EwCa\nxKY0rSWhPUqdRpExgriYuY2oXciUivhL422XmLtl5r80sWWImO+G6r7zfIds\nm9ueq2M7jgO6W4OvwNUFTIE82DJDnoYPCtIZLK1DfLDXubbbH8+9CIH1czSZ\nXtfe03o/cVy12JHis5m7JgBUdvA7V4lmpJTBTVVmszr+oJrm9p+PLaBygL2e\nc7TN\r\n=i/9V\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCTKqMys6mHejwZoZYm5uAG2Y4PtXb1BYfA+6UZAZkgyAIhAOAqXG/ErYt7lTW+Lo7WCS+WX/rGQM1Ch2jeL+tbV4/U"}],"size":4120,"noattachment":false,"key":"/nanoevents/-/nanoevents-5.1.6.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.6_1589219234717_0.8867662693168381"},"_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":1589219234831,"_cnpm_publish_time":1589219234831,"dist-tags":{"latest":"10.0.0"}}