MCPcopy Index your code
hub / github.com/nodejs/node / register

Function register

lib/internal/modules/esm/loader.js:1009–1022  ·  view source on GitHub ↗
(specifier, parentURL = undefined, options)

Source from the content-addressed store, hash-verified

1007);
1008
1009function register(specifier, parentURL = undefined, options) {
1010 emitRegisterDeprecation();
1011
1012 if (parentURL != null && typeof parentURL === 'object' && !isURL(parentURL)) {
1013 options = parentURL;
1014 parentURL = options.parentURL;
1015 }
1016 getOrInitializeCascadedLoader().register(
1017 specifier,
1018 parentURL ?? 'data:',
1019 options?.data,
1020 options?.transferList,
1021 );
1022}
1023
1024module.exports = {
1025 createModuleLoader,

Callers

nothing calls this directly

Calls 3

isURLFunction · 0.50
registerMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…