{"_id":"@ap-ent/event-bus","name":"@ap-ent/event-bus","dist-tags":{"latest":"1.0.0"},"versions":{"1.0.0":{"name":"@ap-ent/event-bus","version":"1.0.0","description":"Lightweight typed event emitter for TypeScript","license":"MIT","author":{"name":"Gordon Schauer"},"type":"module","main":"./dist/cjs/index.cjs","module":"./dist/esm/index.js","types":"./dist/esm/index.d.ts","exports":{".":{"import":"./dist/esm/index.js","require":"./dist/cjs/index.cjs","types":"./dist/esm/index.d.ts"}},"scripts":{"build":"tsup src/index.ts --format esm --dts --out-dir dist/esm && tsup src/index.ts --format cjs --out-dir dist/cjs","test":"vitest run","test:watch":"vitest","test:coverage":"vitest run --coverage","lint":"eslint src __tests__","typecheck":"tsc --noEmit"},"devDependencies":{"@types/node":"^20.0.0","eslint":"^8.0.0","@typescript-eslint/parser":"^7.0.0","@typescript-eslint/eslint-plugin":"^7.0.0","tsup":"^8.0.0","typescript":"^5.4.0","vitest":"^1.6.0"},"publishConfig":{"access":"public"},"repository":{"type":"git","url":"git+https://github.com/AloysiusProductions/ap-event-bus.git"},"homepage":"https://github.com/AloysiusProductions/ap-event-bus#readme","bugs":{"url":"https://github.com/AloysiusProductions/ap-event-bus/issues"},"gitHead":"ed47be7d779c89f15576c0624f7081aa1988d7df","_id":"@ap-ent/event-bus@1.0.0","_nodeVersion":"25.8.0","_npmVersion":"11.7.0","dist":{"integrity":"sha512-eq8YeM7AJuAEXeFJ5kLRpaWLK6XXaCTx1Nt6oAs0n4wJKECVGtkgOovRw7+k//uQVmioEYgqGAQ+1BjsJjJ33g==","shasum":"0a1731cffab9489fbd830056aee9f5e4d4f0fc46","tarball":"https://registry.npmjs.org/@ap-ent/event-bus/-/event-bus-1.0.0.tgz","fileCount":8,"unpackedSize":13126,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEQCIGjpwV+dR7Sr9v0Jf4v9QNpQgZPBbja3h86Y3YPcWsEqAiBSlFZQfyWlAM9xF6gMvQp6lyYCbQ2fYopv3rXzYGV3DA=="}]},"_npmUser":{"name":"irishrocker1125","email":"irishrocker1125@gmail.com"},"directories":{},"maintainers":[{"name":"irishrocker1125","email":"irishrocker1125@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/event-bus_1.0.0_1775331586796_0.8856256852126951"},"_hasShrinkwrap":false}},"time":{"created":"2026-04-04T19:39:46.693Z","1.0.0":"2026-04-04T19:39:46.934Z","modified":"2026-04-04T19:39:47.156Z"},"maintainers":[{"name":"irishrocker1125","email":"irishrocker1125@gmail.com"}],"description":"Lightweight typed event emitter for TypeScript","homepage":"https://github.com/AloysiusProductions/ap-event-bus#readme","repository":{"type":"git","url":"git+https://github.com/AloysiusProductions/ap-event-bus.git"},"author":{"name":"Gordon Schauer"},"bugs":{"url":"https://github.com/AloysiusProductions/ap-event-bus/issues"},"license":"MIT","readme":"# @ap/event-bus\n\n> Lightweight, zero-dependency typed event emitter.\n\n## Features\n\n- ✅ Fully typed events via generic EventMap\n- ✅ Wildcard support (`*`, `**`)\n- ✅ Replay buffer for late joiners\n- ✅ Async handler support\n- ✅ One-time listeners (`once`)\n- ✅ Namespace support\n\n## Install\n\n```bash\nnpm install @ap/event-bus\n```\n\n## Quick Start\n\n```typescript\nimport { createEventBus } from '@ap/event-bus'\n\ninterface MyEvents {\n  'user:login': { id: string; name: string }\n  'app:ready': void\n}\n\nconst bus = createEventBus<MyEvents>()\n\nbus.on('user:login', (user) => {\n  console.log('User logged in:', user.name)\n})\n\nbus.emit('user:login', { id: '123', name: 'Gordon' })\n```\n\n## License\n\nMIT\n","readmeFilename":"README.md","_rev":"1-831c3767bffe5d591aa298063b1c87ee"}