# mediumFromStandard

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

@shumoku/core · 0.4.0 · function

# mediumFromStandard

[Source](https://github.com/konoe-akitoshi/shumoku/blob/main/libs/@shumoku/core/src/models/standards.ts#L666)

Derive the cable medium implied by an Ethernet standard. Resolves the standard via \`STANDARD\_SPECS\` and maps \`cableKind\` + \`fiberMode\` onto the unified \`CableMedium\` enum.

```
mediumFromStandard(standard: EthernetStandard | undefined): CableMedium | undefined
```

## Parameters

| Parameter | Type | Description | Default |
| --- | --- | --- | --- |
| `standard` | `EthernetStandard | undefined` | No additional description. | `—` |

## Returns

```
CableMedium | undefined
```

[`libs/@shumoku/core/src/models/standards.ts:666`](https://github.com/konoe-akitoshi/shumoku/blob/main/libs/@shumoku/core/src/models/standards.ts#L666)
