cleanPath()function
cleanPath(path: AbsolutePath): AbsolutePath
cleanPath(path: string): string
| Param | Type | |
|---|---|---|
path | AbsolutePath | The path to normalise. required |
path | string | required |
| Return | |
|---|---|
AbsolutePath | The normalised path, preserving the absolute/relative type of path. |
string |
Examples
cleanPath("/a//b/") // "/a/b"