MCPcopy Create free account
hub / github.com/Effect-TS/effect / normalizedPath

Function normalizedPath

packages/tools/api-diff/src/Snapshot.ts:35–36  ·  view source on GitHub ↗
(path: Path.Path, root: string, location: string)

Source from the content-addressed store, hash-verified

33}
34
35const normalizedPath = (path: Path.Path, root: string, location: string): string =>
36 path.relative(root, location).split(path.sep).join("/")
37
38const sourceLocation = (path: Path.Path, root: string, node: ts.Node): SourceLocation => {
39 const source = node.getSourceFile()

Callers 3

sourceLocationFunction · 0.85
referenceResolutionFunction · 0.85
extractSnapshotFunction · 0.85

Calls 2

joinMethod · 0.80
splitMethod · 0.45

Tested by

no test coverage detected