MCPcopy
hub / github.com/QwikDev/qwik / assertPath

Function assertPath

packages/qwik/src/optimizer/src/path.ts:25–29  ·  view source on GitHub ↗
(path: any)

Source from the content-addressed store, hash-verified

23
24export function createPath(opts: { cwd?: () => string } = {}): Path {
25 function assertPath(path: any) {
26 if (typeof path !== 'string') {
27 throw new TypeError('Path must be a string. Received ' + JSON.stringify(path));
28 }
29 }
30
31 // Resolves . and .. elements in a path with directory names
32 function normalizeStringPosix(path: string, allowAboveRoot: boolean): string {

Callers 9

resolveFunction · 0.85
normalizeFunction · 0.85
isAbsoluteFunction · 0.85
joinFunction · 0.85
relativeFunction · 0.85
dirnameFunction · 0.85
basenameFunction · 0.85
extnameFunction · 0.85
parseFunction · 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…