{"name":"nanoevents","version":"9.1.0","description":"Simple and tiny (107 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":"^18.0.0 || >=20.0.0"},"sideEffects":false,"type":"module","types":"./index.d.ts","exports":{".":"./index.js","./package.json":"./package.json"},"_id":"nanoevents@9.1.0","gitHead":"0c2c886bfbc677142b4a6e0c8b6f780b8d316247","bugs":{"url":"https://github.com/ai/nanoevents/issues"},"homepage":"https://github.com/ai/nanoevents#readme","_nodeVersion":"20.17.0","_npmVersion":"10.8.2","dist":{"integrity":"sha512-Jd0fILWG44a9luj8v5kED4WI+zfkkgwKyRQKItTtlPfEsh7Lznfi1kr8/iZ+XAIss4Qq5GqRB0qtWbaz9ceO/A==","shasum":"76c8c86ed54a26131ada5a0a1c5682f48690dbb7","tarball":"http://registry-npm.ywwl.com/nanoevents/download/nanoevents-9.1.0.tgz","fileCount":5,"unpackedSize":5433,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCJqskcFv/vnjwJrujmtoHsqTANW+OToo+7NP5/47DMmQIgOa6ouycef3w0Fuggytco02KxTQaDWZ6RZ/V7Xogw6ok="}],"size":2542,"noattachment":false,"key":"/nanoevents/-/nanoevents-9.1.0.tgz"},"_npmUser":{"name":"ai","email":"andrey@sitnik.ru"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/nanoevents_9.1.0_1728940477171_0.4865691745154723"},"_hasShrinkwrap":false,"readme":"# Nano Events\n\nSimple and tiny event emitter library for JavaScript.\n\n* Only **108 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---\n\n<img src=\"https://cdn.evilmartians.com/badges/logo-no-label.svg\" alt=\"\" width=\"22\" height=\"16\" />  Made at <b><a href=\"https://evilmartians.com/devtools?utm_source=nanoevents&utm_campaign=devtools-button&utm_medium=github\">Evil Martians</a></b>, product consulting for <b>developer tools</b>.\n\n---\n\n\n## Docs\nRead full docs **[here](https://github.com/ai/nanoevents#readme)**.\n","publish_time":1728940477377,"maintainers":[{"name":"ai","email":"andrey@sitnik.ru"}],"_cnpm_publish_time":1728940477377,"dist-tags":{"latest":"10.0.0"}}