On this page

    M

    module.registerHooks

    History
    module.registerHooks(options): Object
    Stability: 1.2Release candidate
    Attributes
    options:Object
    See load hook. Default: undefined.
    resolve?:Function | undefined
    See resolve hook. Default: undefined.
    Returns:Object
    An object with the following property:

    Register hooks that customize Node.js module resolution and loading behavior. See Customization hooks. The returned object can be used to deregister the hooks.