{"name":"nanoevents","version":"5.1.13","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,"types":"./index.d.ts","type":"module","main":"index.cjs","module":"index.js","react-native":"index.js","exports":{".":{"require":"./index.cjs","import":"./index.js","default":"./index.js","types":"./index.d.ts"},"./package.json":"./package.json","./index.d.ts":"./index.d.ts"},"bugs":{"url":"https://github.com/ai/nanoevents/issues"},"homepage":"https://github.com/ai/nanoevents#readme","_id":"nanoevents@5.1.13","_nodeVersion":"15.11.0","_npmVersion":"7.6.0","dist":{"integrity":"sha512-JFAeG9fp0QZnRoESHjkbVFbZ9BkOXkkagUVwZVo/pkSX+Fq1VKlY+5og/8X9CYc6C7vje/CV+bwJ5M2X0+IY9Q==","shasum":"0e49c30acbcf847c10f29f1d1e7147c0f88fa3d1","tarball":"http://registry-npm.ywwl.com/nanoevents/download/nanoevents-5.1.13.tgz","fileCount":6,"unpackedSize":8631,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgT3TBCRA9TVsSAnZWagAAv5gP/Rs5/6yhGqc87kg1bxA9\nUiS35OZhZm5H1P/G9IbQth+24pkm63xip/RRz4zHuN+gJIh89FIRoddjoAu5\nywGiNWMXkNPJWub29/R965+2fBOmF/lSH9hGY1Qyw05cVzNtXl836sN+7Qmh\nluaWyW3tC15TcG9Vx7+d6llEKik3B6dFJAzLh5lAH/xuQ26KxembZBRn+YNt\nkpNtBJqFE2cUYoZNH+jAD3nYtrVMCSDOlaBZsi8KjiLZNsiioCLzXhVC7jea\nOxKhxQQnmQmPrmzq42l3xHbBfjXf8+2uKvocqGpHL1nGGWNaEHT1BDdx9GRq\nBTsvv5zOLqzkyVPaHWXewchBpzNAAs3fZbXMYOrDuKq9IWEgbzcl+YB+h3Mt\nglLTDiF1BZOYYwpWU31p7h3L7m8K6fjz276K4i/AgbLeveJ+f+DAIGF+VQV4\nSmtfgWIEMRNVgPbSqtPxgUI84fxmquqZ5+XNtILsLXLDPX3cf5+0qQMv7uIx\nRs4bPxhjahdwM+KZ7zJrZACUBxVtRmAoitkowIeyRLXdO1ce9kKuT60XMsoY\nSXbQiFYtFlVcqTGRb7x1m5K9JSNtwzYiDjr0XL74UYx8chUKJvR27OXQVmHu\nDcpG25r4dL3rpteo1D/GtzwDDx9Bko+X9j1fi3wKmC/LSTZnOBHO0TdIBmSa\nd3yn\r\n=gekE\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIGmCBpmlHf1rnn18MAnoyhQCobbmcrG+XlfVc2RNy5zrAiBfcs6TaXgzURCpyumyKCwMu9/opgKG6UpR/+pb3JC/Qw=="}],"size":3517,"noattachment":false,"key":"/nanoevents/-/nanoevents-5.1.13.tgz"},"_npmUser":{"name":"ai","email":"andrey@sitnik.ru"},"directories":{},"maintainers":[{"name":"ai","email":"andrey@sitnik.ru"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/nanoevents_5.1.13_1615819969202_0.1393812780742112"},"_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":1615819969395,"_cnpm_publish_time":1615819969395,"dist-tags":{"latest":"10.0.0"}}