(no title)
dhax_or | 9 months ago
- once() for one-time listeners - hasListeners() and listenerCount() for introspection - clear() to reset everything - Safer emission that protects against handler modification during events - Full TypeScript support with generic types
Same familiar API as Node's EventEmitter and original Mitt, so it's a drop-in replacement. I've been using it in production and it's been solid.
GitHub: https://github.com/Dhaxor/better-mitt
NPM: npm install better-mitt
Would love feedback from the community - and if you find it useful, a GitHub star would be much appreciated!
No comments yet.