(filepath: string)
| 117 | * @returns Expanded path |
| 118 | */ |
| 119 | export function expandHome(filepath: string): string { |
| 120 | if (filepath.startsWith('~/') || filepath === '~') { |
| 121 | return path.join(os.homedir(), filepath.slice(1)); |
| 122 | } |
| 123 | return filepath; |
| 124 | } |
| 125 |
no outgoing calls
no test coverage detected