(path: string)
| 37 | }; |
| 38 | |
| 39 | export function getExtension(path: string): string { |
| 40 | const dot = path.lastIndexOf('.'); |
| 41 | if (dot === -1 || dot === path.length - 1) return ''; |
| 42 | return path.slice(dot); |
| 43 | } |
| 44 | |
| 45 | export function parentDir(path: string): string { |
| 46 | const slash = path.lastIndexOf('/'); |
no outgoing calls
no test coverage detected