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