MCPcopy Index your code
hub / github.com/angular/angular / basename

Function basename

packages/compiler-cli/src/ngtsc/file_system/src/helpers.ts:103–105  ·  view source on GitHub ↗
(filePath: PathString, extension?: string)

Source from the content-addressed store, hash-verified

101 * Static access to `basename`.
102 */
103export function basename(filePath: PathString, extension?: string): PathSegment {
104 return fs.basename(filePath, extension) as PathSegment;
105}
106
107/**
108 * Returns true if the given path is locally relative.

Callers 4

fileNameToModuleNameFunction · 0.90
moveFileFunction · 0.90
getCachedSourceFileFunction · 0.90
ivy_spec.tsFile · 0.85

Calls 1

basenameMethod · 0.65

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…