node:domain API Reference

Node.js domain module — deprecated; provided as a pass-through surface

Node.js domain module, resolvable via both ESM import and CommonJS require.

Deprecated. node:domain is 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.

ExportDescription
DomainClass exposing run, bind, intercept, enter, exit, and related methods, plus the EventEmitter surface.
create() / createDomain()Create a Domain.
activeAlways null.

See also