{"name":"nanoevents","version":"6.0.1","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":"^12.0.0 || ^14.0.0 || >=16.0.0"},"sideEffects":false,"type":"module","types":"./index.d.ts","exports":{".":"./index.js","./package.json":"./package.json"},"bugs":{"url":"https://github.com/ai/nanoevents/issues"},"homepage":"https://github.com/ai/nanoevents#readme","_id":"nanoevents@6.0.1","_nodeVersion":"16.8.0","_npmVersion":"7.21.0","dist":{"integrity":"sha512-pV++eMfEBTnNQgtzW93LfVezbA1BPaPSgIgyK+ZskLSEEKjHThs4Pp2UqfOjI+EFD3UkVYbwmpxf1WSSX0ALzA==","shasum":"4e49e895953d15a7ba06187d7a5fcd148abde990","tarball":"http://registry-npm.ywwl.com/nanoevents/download/nanoevents-6.0.1.tgz","fileCount":5,"unpackedSize":8047,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhM0Y1CRA9TVsSAnZWagAAYEYP/iNFfY4RiYyq6bH8O5H8\nENI/C4MnV3O9THBXfXfLFVY0SA9Crza2irk5mIgzklGjbk4E+wo5kUEUSQng\nCnu1oQ4rPevCHYCZMm5VJ3g7ZTInr3hY4Bcs9sKJ5wLBw1hHw6NSRvC3KRF3\nBCC9oU2z6TqzzLfw1NGj848IrrYN42fuXofvHQELOQLGQvA4NaKoCWxh9+l5\nHVyWwqAo6x6RA4crX0G8sNlSLtK3MsDXUM8a1+Depqnp37Sy+iUaRuI/U9a0\nE3gTyWgCGE7Tgrec+ho0pHh4/Z8MkzXmlavmLAr1is79otdl6IOQDhdV0YRk\n16Wj76RqoeneFcPovUSTJp/GshuJXw+LGmuXB7ueJlKbp00w1M6ePQgU+/Jv\nlOutRysacsgk9TUSFKnlJGG1BpLgYlQTNtePsSKOcd1xTj3OlnM7q1uK6qFR\nW8c+x2Svm7FXGTQrsuRwCoUfy/1YQnQyiy5dm682gP2Gld7IJuCu1YD+lTBm\n4ZTka2rt3mj/SkrFeQXDhHhSZbJ4tlp1dq5FQNVKfoFl74aQ3sUA5GDV7gdE\nJHlI2ZRa5DyQz9NCZPapSgbpMAmrdvf9DKbOXZMSlnSD84Xa9VaYBoF7goAP\nYSCD8scu6FdJz7Vpv7x3kyASRUHHbiob7f30sKId3SiosCq0FJnMHTjI+1PW\nhKMr\r\n=xRES\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIFoSL19ctvmSbsBKCAjkgEzIZPmO65Fqt5KdUwArGhlPAiEA5TGdKC9L+vOsPWV8l9I9dsbiP1myeMw2IwEIK5m9yZo="}],"size":3407,"noattachment":false,"key":"/nanoevents/-/nanoevents-6.0.1.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_6.0.1_1630750260899_0.7066018685426994"},"_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":1630750261043,"_cnpm_publish_time":1630750261043,"dist-tags":{"latest":"10.0.0"}}