normalizeString()
normalizeString(
path,allowAboveRoot):string
Resolves a string path, resolving '.' and '.' segments and allowing paths above the root.
Parameters
| Parameter | Type | Description |
|---|---|---|
|
|
|
The path to normalise. |
|
|
|
Whether to allow the resulting path to be above the root directory. |
Returns
string
the normalised path string.