MCPcopy
hub / github.com/angular/angular-cli / normalize

Function normalize

packages/angular_devkit/core/src/virtual-fs/path.ts:211–219  ·  view source on GitHub ↗
(path: string)

Source from the content-addressed store, hash-verified

209 * @param path The path to be normalized.
210 */
211export function normalize(path: string): Path {
212 let maybePath = normalizedCache.get(path);
213 if (!maybePath) {
214 maybePath = noCacheNormalize(path);
215 normalizedCache.set(path, maybePath);
216 }
217
218 return maybePath;
219}
220
221/**
222 * The no cache version of the normalize() function. Used for benchmarking and testing.

Callers 15

findModuleFromOptionsFunction · 0.90
buildRelativePathFunction · 0.90
parseNameFunction · 0.90
index.tsFile · 0.90
addAppToWorkspaceFileFunction · 0.90
getAppOptionsFunction · 0.90
index.tsFile · 0.90
writeMultipleFilesMethod · 0.90
replaceInFileMethod · 0.90
appendToFileMethod · 0.90
fileMatchExistsMethod · 0.90

Calls 3

noCacheNormalizeFunction · 0.85
getMethod · 0.65
setMethod · 0.45

Tested by

no test coverage detected