# normalizePath

**Kind:** Function

**Source:** [`packages/common/utils/shared.utils.ts`](https://github.com/nestjs/nest/blob/master/packages/common/utils/shared.utils.ts#L33)

**Part of:** [Common](subsystem-packages-common)

## Signature

```ts
function normalizePath(path: string): string
```

## Parameters

| Name | Type |
|---|---|
| `path` | `string` |

**Returns:** `string`

## Used by

3 references from 3 files. Each is a place in this repository where the symbol is actually used — go read one rather than trusting an example.

### Imported by (3)

- `ROUTES` — `packages/core/router/router-module.ts`:9
- `flattenRoutePaths` — `packages/core/router/utils/flatten-route-paths.util.ts`:5
- `WsAdapter` — `packages/platform-ws/adapters/ws-adapter.ts`:39
