(path: string)
| 47 | } |
| 48 | |
| 49 | function normalizePath(path: string): string { |
| 50 | return path.replaceAll('\\', '/').replace(/^\/+/, '') |
| 51 | } |
| 52 | |
| 53 | function dirname(path: string): string { |
| 54 | const normalized = normalizePath(path) |
no outgoing calls
no test coverage detected