M
module.registerHooks
History
Added in: v23.5.0, v22.15.0
v23.5.0, v22.15.0
Introduced in: v12.20.0
v12.20.0
Synchronous and in-thread hooks are now release candidate.
v25.4.0, v24.13.1
module.registerHooks(options): Object
Stability: 1.2Release candidate
Attributes
Register hooks that customize Node.js module resolution and loading behavior. See Customization hooks. The returned object can be used to deregister the hooks.