MCPcopy Create free account
hub / github.com/Snapchat/Valdi / relativePathTo

Function relativePathTo

npm_modules/cli/src/utils/pathUtils.ts:6–12  ·  view source on GitHub ↗
(from: string, to: string)

Source from the content-addressed store, hash-verified

4 * Version of path.relative() that resolves equal paths to .
5 */
6export function relativePathTo(from: string, to: string): string {
7 const output = path.relative(from, to);
8 if (!output) {
9 return '.';
10 }
11 return output;
12}

Callers 3

computeTsCompilerOptionsFunction · 0.90
processTsConfigDirFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected