MCPcopy Index your code
hub / github.com/callstack/agent-device / resolveHomeDirectory

Function resolveHomeDirectory

src/utils/path-resolution.ts:10–12  ·  view source on GitHub ↗
(env?: EnvMap)

Source from the content-addressed store, hash-verified

8};
9
10function resolveHomeDirectory(env?: EnvMap): string {
11 return env?.HOME?.trim() || os.homedir();
12}
13
14export function expandUserHomePath(inputPath: string, options: PathResolutionOptions = {}): string {
15 if (inputPath === '~') return resolveHomeDirectory(options.env);

Callers 1

expandUserHomePathFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected