brianc

brianc/node-domain-middleware

Middleware to attach your express app's request & response to a domain. No more process.uncaughtException nonsense.

JavaScript
119
8
No license

This tiny library provides an Express middleware that creates a separate Node `domain` for each incoming request, binding the request and response objects to that domain. By doing so, any uncaught errors that occur deep in asynchronous code are caught by the domain and forwarded to Express’s normal error‑handling flow instead of crashing the whole process, making it useful for developers who want safer request‑scoped error handling and easier request‑context logging.

Total donated
Undistributed
Share with your subscribers:

Recipients

How the donated funds are distributed

Support the dependencies of brianc/node-domain-middleware

Account's avatar
ORANGE MOCHA FRAPPUCCINO!!!11
Account's avatar
simple, flexible, fun test framework

Support the repos that depend on this repository

Top contributors

brianc's profile
brianc
17 contributions
BorisChumichev's profile
BorisChumichev
1 contributions
potomak's profile
potomak
1 contributions
CodePlato3721's profile
CodePlato3721
1 contributions

Recent events

Kivach works on the Obyte network, and therefore you can track all donations.

No events yet