1.0.0 • Published 4 years ago

proper-event-emitter v1.0.0

Weekly downloads
2
License
MIT
Repository
github
Last release
4 years ago

proper-event-emitter

Build Status dependencies Status JavaScript Style Guide

Event emitter extension to handle event errors by throwing them in the global context

Node.js EventEmitter throws in the global context when errors occur in the scope of an event handler.

It is common to use the EventEmitter widely, not only in Node.js. Applications built for other environment rely on shimming to support this Node.js functionality out of the box. But, most shims used for EventEmitter do not handle event errors in the global context and leave their handling to the application layer.

This module abstracts the event handling errors from the application layer and throws them in the global context for other environments.

Install

npm i proper-event-emitter

API and Usage

You can check Node.js API docs.

Contribute

Feel free to dive in! Open an issue or submit PRs.

License

MIT © Vasco Santos