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