(path: string)
| 111 | } |
| 112 | |
| 113 | export function toUnixPath(path: string): string { |
| 114 | return path.replace(/\\/g, '/'); |
| 115 | } |
| 116 | |
| 117 | export function toUnixNewlines(text: string): string { |
| 118 | return platform() === 'win32' ? text.replace(/\r\n/g, '\n') : text; |
no outgoing calls