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

Function wrapResolveFilename

lib/internal/modules/cjs/loader.js:1121–1124  ·  view source on GitHub ↗

* Wraps result of Module._resolveFilename to include additional fields for hooks. * See resolveForCJSWithHooks. * @param {string} specifier * @param {Module|undefined} parent * @param {boolean} isMain * @param {ResolveFilenameOptions} options * @returns {{url?: string, format?: string, parentU

(specifier, parent, isMain, options)

Source from the content-addressed store, hash-verified

1119 * @returns {{url?: string, format?: string, parentURL?: string, filename: string}}
1120 */
1121function wrapResolveFilename(specifier, parent, isMain, options) {
1122 const filename = Module._resolveFilename(specifier, parent, isMain, options).toString();
1123 return { __proto__: null, url: undefined, format: undefined, filename };
1124}
1125
1126/**
1127 * See resolveForCJSWithHooks.

Callers 1

Calls 1

toStringMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…