(input: string)
| 12 | } |
| 13 | |
| 14 | function absolute(input: string) { |
| 15 | const result = storagePath(input) |
| 16 | if (!nodePath.posix.isAbsolute(result) && !(process.platform === "win32" && isWindowsStoragePath(result))) { |
| 17 | throw new Error(`Path is not absolute: ${input}`) |
| 18 | } |
| 19 | return result |
| 20 | } |
| 21 | |
| 22 | function toPlatform(input: string) { |
| 23 | if (process.platform !== "win32" || !isWindowsStoragePath(input)) return input |
no test coverage detected