(inputPath: string)
| 39 | * stripTrailingSlashes("/home/user/project//") // => "/home/user/project" |
| 40 | */ |
| 41 | export function stripTrailingSlashes(inputPath: string): string { |
| 42 | return inputPath.replace(/[/\\]+$/, ""); |
| 43 | } |
| 44 | |
| 45 | /** |
| 46 | * Validate that a project path exists and is a directory. |
no outgoing calls
no test coverage detected