MCPcopy
hub / github.com/mswjs/msw / toAbsolutePath

Function toAbsolutePath

cli/init.js:99–103  ·  view source on GitHub ↗

* @param {string} maybeAbsolutePath * @param {string} cwd * @returns {string}

(maybeAbsolutePath, cwd)

Source from the content-addressed store, hash-verified

97 * @returns {string}
98 */
99function toAbsolutePath(maybeAbsolutePath, cwd) {
100 return path.isAbsolute(maybeAbsolutePath)
101 ? maybeAbsolutePath
102 : path.resolve(cwd, maybeAbsolutePath)
103}
104
105/**
106 * @param {string} destination

Callers 2

initFunction · 0.85
copyWorkerScriptFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…