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

Function parseName

packages/schematics/angular/utility/parse-name.ts:16–24  ·  view source on GitHub ↗
(path: string, name: string)

Source from the content-addressed store, hash-verified

14}
15
16export function parseName(path: string, name: string): Location {
17 const nameWithoutPath = basename(normalize(name));
18 const namePath = dirname(join(normalize(path), name));
19
20 return {
21 name: nameWithoutPath,
22 path: normalize('/' + namePath),
23 };
24}

Callers 8

index.tsFile · 0.90
index.tsFile · 0.90
index.tsFile · 0.90
index.tsFile · 0.90
generateFromFilesFunction · 0.90
parse-name_spec.tsFile · 0.90
index.tsFile · 0.90
index.tsFile · 0.90

Calls 4

basenameFunction · 0.90
normalizeFunction · 0.90
dirnameFunction · 0.90
joinFunction · 0.90

Tested by

no test coverage detected