On this page

    module.register(specifier, parentURL?, options?): void
    Stability: 0Deprecated: Use module.registerHooks() instead.
    Attributes
    specifier:string | URL
    Customization hooks to be registered; this should be the same string that would be passed to import(), except that if it is relative, it is resolved relative to parentURL.
    parentURL?:string | URL
    If you want to resolve specifier relative to a base URL, such as import.meta.url, you can pass that URL here. Default: 'data:'
    options:Object
    parentURL?:string | URL
    If you want to resolve specifier relative to a base URL, such as import.meta.url, you can pass that URL here. This property is ignored if the parentURL is supplied as the second argument. Default: 'data:'
    data:any
    Any arbitrary, cloneable JavaScript value to pass into the initialize hook.
    transferList:Object[]
    transferable objects to be passed into the initialize hook.

    Register a module that exports hooks that customize Node.js module resolution and loading behavior. See Customization hooks.

    This feature requires --allow-worker if used with the Permission Model.