MCPcopy
hub / github.com/vercel/hyper / normalizePath

Function normalizePath

bin/yarn-standalone.js:32715–32725  ·  view source on GitHub ↗
(val)

Source from the content-addressed store, hash-verified

32713}
32714
32715function normalizePath(val) {
32716 if (val === undefined) {
32717 return undefined;
32718 }
32719
32720 if (typeof val !== 'string') {
32721 val = String(val);
32722 }
32723
32724 return (0, (_path || _load_path()).resolveWithHome)(val);
32725}
32726
32727function urlParts(requestUrl) {
32728 const normalizedUrl = (0, (_normalizeUrl || _load_normalizeUrl()).default)(requestUrl);

Callers 3

normalizeConfigMethod · 0.85
getCachePathFunction · 0.85
normalizeDirectoryPathFunction · 0.85

Calls 1

_load_pathFunction · 0.85

Tested by

no test coverage detected