MCPcopy Create free account
hub / github.com/QwikDev/qwik / getMenuPathname

Function getMenuPathname

packages/qwik-city/src/utils/fs.ts:42–46  ·  view source on GitHub ↗
(opts: NormalizedPluginOptions, filePath: string)

Source from the content-addressed store, hash-verified

40}
41
42export function getMenuPathname(opts: NormalizedPluginOptions, filePath: string) {
43 let pathname = normalizePath(relative(opts.routesDir, filePath));
44 pathname = `/` + normalizePath(dirname(pathname));
45 return normalizePathname(pathname, opts.basePathname, true)!;
46}
47
48export function getExtension(fileName: string) {
49 if (typeof fileName === 'string') {

Callers 2

fs.unit.tsFile · 0.90
createMenuFunction · 0.90

Calls 4

normalizePathnameFunction · 0.90
relativeFunction · 0.85
dirnameFunction · 0.85
normalizePathFunction · 0.70

Tested by

no test coverage detected