{"name":"nanoevents","version":"5.1.12","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","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.12","_nodeVersion":"15.8.0","_npmVersion":"7.5.1","dist":{"integrity":"sha512-Tzfk8ooKL/aLuF5uWqgBa+u+TjdHQwfFyWKTpaYHHBfGOTxc68K4prj77TBAW5MN2RCMVwk9XK1K0RRgHO6T4Q==","shasum":"fc1e0dd66e0d81186674265f3c78bbfd41161172","tarball":"http://registry-npm.ywwl.com/nanoevents/download/nanoevents-5.1.12.tgz","fileCount":7,"unpackedSize":10795,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgP5D5CRA9TVsSAnZWagAAQW4P/3c4RCUsUJF/VdiYXq7d\ndU42m7gsON2a2WCmh+q9FPAvBlPmqgtv76zB9mNwNjFmWVHjHV9PeBu2Rmxx\naZPVMWVS7KuHU7xz791IQcnVPGje3Uk/b7E9pMWsIzgo8kWAt6mycs2ua3iy\nQmfSIcv5js6fMd/pEfpVZYhdxEjnI3l1AHUoIh2so7vBslunJkY01dTxlVWA\nu29fnWfEZotHHgJCbLFCc6/TWLhgJphe11bnqMbBgg4x4W5Fagp1VWiLDzx4\nypK7oPUUd7mKT9ACxcxFAkIxlyT8GV30kmUbt8+XmNIA8ZzSxidG6+yxZAbU\ny8lFsLYVo4rwzj3NvrB31CxvHcZJCcMYvL9ki8HXFcoTZWqq2KZEZ4b7g0xL\nw1fU+pFNQQLCpYfcalp9dCXriUzBwMq9rO1u6OZ3EZ7NBzrD7hkwvPT38WOJ\n2VNMSwIYrhOQmhd/hr19k4a1ZQ8B3HKWpdYz3Gp9+4ijQE0M2pC2/2U1Or5m\ngQv8948hnNUQ8udh/v+TyqOzazmuC4MG7dO5xnKjZG0dkcsZYKk7xnU+CiQW\n/snQ4t6bj+v8EJpvcc1HQyTCyPkLVAJK0aoQ/Aj6r4FHw3LbQOuXi3XLcIvk\nlBMYtnVBp5u46hsaJ3KG0QBlTuwH2QpcxpgiK2eu4eaFQqxiyTeM8R52SgM8\nBVo6\r\n=kdp/\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIGVGZ7xYyH8leIqVtlptHKW8CEClDpn5O+4RTMX2tiyjAiBiQKNjCg8mPvxMmRfS9EhUdguJGpI4EG1H99KMOY43gA=="}],"size":4337,"noattachment":false,"key":"/nanoevents/-/nanoevents-5.1.12.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.12_1614778617415_0.8154277179287266"},"_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":1614778617563,"_cnpm_publish_time":1614778617563,"dist-tags":{"latest":"10.0.0"}}