# path.normalize

Function · category: Other

Source: https://github.com/playcanvas/engine/blob/970d89f6d3bc6667f4e1f88153abd6e7e82ed52c/src/core/path.js#L54

```ts
normalize(pathname: string): string
```

Normalize the path by removing '.' and '..' instances.

**Parameters**

- `pathname` (`string`): The path to normalize.

**Returns** `string`: The normalized path.
