# normalizeInterfaceName

Canonical: https://docs.shumoku.dev/en/library/api/normalizeInterfaceName
Language: en

@shumoku/core · 0.4.0 · function

# normalizeInterfaceName

[Source](https://github.com/konoe-akitoshi/shumoku/blob/main/libs/@shumoku/core/src/observation/interface-name.ts#L64)

Normalize an interface name to \`{ prefix, numbers, sub }\`. The numeric part is split on \`/\`, \`-\`, or \`:\` so TTDB's dash form ("hg-0-0-0" → \[0,0,0\]) lines up with the slash form ("hg/0/0/0" → \[0,0,0\]).

```
normalizeInterfaceName(name: string): NormalizedInterface
```

## Parameters

| Parameter | Type | Description | Default |
| --- | --- | --- | --- |
| `name` | `string` | No additional description. | `—` |

## Returns

```
NormalizedInterface
```

[`libs/@shumoku/core/src/observation/interface-name.ts:64`](https://github.com/konoe-akitoshi/shumoku/blob/main/libs/@shumoku/core/src/observation/interface-name.ts#L64)
