# plugFromStandard

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

@shumoku/core · 0.4.0 · function

# plugFromStandard

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

Build a plug from a chosen module standard. The plug carries only the \`module\` — \`cage\` is intentionally omitted because it's derivable from \`module.standard\` via \`STANDARD\_SPECS\[std\].cage\`. Returns \`undefined\` if the standard is unknown.

```
plugFromStandard(standard: EthernetStandard, sku?: string): LinkPlug | undefined
```

## Parameters

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

## Returns

```
LinkPlug | undefined
```

[`libs/@shumoku/core/src/models/port-compatibility.ts:125`](https://github.com/konoe-akitoshi/shumoku/blob/main/libs/@shumoku/core/src/models/port-compatibility.ts#L125)
