---
url: >-
  https://adk.nht.io/api/@nhtio/adk/lib/patch/functions/normalizeWorkspacePath.md
---

# Function: normalizeWorkspacePath()

```ts
function normalizeWorkspacePath(path: string): string;
```

Defined in: [src/lib/patch/index.ts:92](https://github.com/NHTIO/ADK/blob/v1.20261103.0/src/src/lib/patch/index.ts#L92)

Normalize a workspace path: relative, no `.`/`..`/empty segments, forward slashes.

## Parameters

| Parameter | Type     |
| --------- | -------- |
| `path`    | `string` |

## Returns

`string`
