{"_id":"nanoevents@10.0.0","bugs":{"url":"https://github.com/ai/nanoevents/issues"},"dist":{"shasum":"ea060a543af487b51fc129ca0263464756906e45","tarball":"http://registry-npm.ywwl.com/nanoevents/download/nanoevents-10.0.0.tgz","integrity":"sha512-PmIJ3BNxOzgVgnS1r/Pvyj6eZx/xUV2JCPogh0brD6smDIwjRlr1KBl9yoRX323PlfaNrBDDnfCgC9SL00OjSg==","fileCount":5,"unpackedSize":5481,"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/nanoevents@10.0.0","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEUCIQCwShacgbeDQFo0HC8MYcTenRSShEWfSkA+ORmnry5SfAIgMdjKpQ8e09N3eZ5DcypxkNmrb9E6x+sgS7R5qzykpFA="}],"size":2548,"noattachment":false,"key":"/nanoevents/-/nanoevents-10.0.0.tgz"},"name":"nanoevents","type":"module","types":"./index.d.ts","author":{"name":"Andrey Sitnik","email":"andrey@sitnik.ru"},"engines":{"node":"^22.0.0 || ^24.0.0 || >=26.0.0"},"exports":{".":"./index.js","./package.json":"./package.json"},"funding":[{"url":"https://github.com/sponsors/ai","type":"github"}],"gitHead":"5f33bc60bbb5fa8b5b39d1959f777b72b2258b36","license":"MIT","version":"10.0.0","_npmUser":{"name":"GitHub Actions","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"oidc:6d641f0a-7a26-4dd9-903d-990835d3bcac"},"approver":{"name":"ai","email":"andrey@sitnik.es"}},"homepage":"https://github.com/ai/nanoevents#readme","keywords":["EventEmitter","Events","emit","emitter","event","pub/sub","publish","reactor","subscribe"],"repository":{"url":"git+https://github.com/ai/nanoevents.git","type":"git"},"_npmVersion":"11.17.0","description":"Simple and tiny (108 bytes) event emitter library","directories":{},"maintainers":[{"name":"ai","email":"andrey@sitnik.es"}],"sideEffects":false,"_nodeVersion":"26.5.0","_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/nanoevents_10.0.0_1784739551024_0.45956783304836035"},"_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","publish_time":1784739551131,"_cnpm_publish_time":1784739551131,"dist-tags":{"latest":"10.0.0"}}