Node.js domain module, resolvable via both ESM import and CommonJS require.
Deprecated.
node:domainis deprecated in Node itself. Elide provides the surface for compatibility, but it is pass-through only — it does not intercept or route errors the way Node’s domains do.
| Export | Description |
|---|---|
Domain | Class exposing run, bind, intercept, enter, exit, and related methods, plus the EventEmitter surface. |
create() / createDomain() | Create a Domain. |
active | Always null. |
See also
- Node.js upstream: https://nodejs.org/api/domain.html