(fileUrl: string)
| 547 | } |
| 548 | |
| 549 | export function fileUrlToPath(fileUrl: string): string { |
| 550 | // Support both file:// and computer:// (used by some clients for local files) |
| 551 | return decodeURIComponent(fileUrl.replace(/^(?:file|computer):\/\//, "")); |
| 552 | } |
| 553 | |
| 554 | export function pathToFileUrl(filePath: string): string { |
| 555 | const absolutePath = path.resolve(filePath); |
no outgoing calls
no test coverage detected
searching dependent graphs…