# rateFromBps

Canonical: https://docs.shumoku.dev/ja/library/api/rateFromBps
Language: ja

@shumoku/core · 0.4.2 · function

# rateFromBps

[ソース](https://github.com/konoe-akitoshi/shumoku/blob/main/libs/@shumoku/core/src/libs/@shumoku/core/src/models/network-model-from-graph.ts#L283)

APIの説明は英語のcanonical sourceを表示しています。

Writes a rate in bits/sec as the input does, such as \`10G\` or \`100M\`.

```
rateFromBps(bps: number): templateLiteral | templateLiteral | templateLiteral
```

## パラメーター

| 名前 | 型 | 説明 | 既定値 |
| --- | --- | --- | --- |
| `bps` | `number` | 追加説明はありません。 | `—` |

## 戻り値

```
templateLiteral | templateLiteral | templateLiteral
```

[`libs/@shumoku/core/src/libs/@shumoku/core/src/models/network-model-from-graph.ts:283`](https://github.com/konoe-akitoshi/shumoku/blob/main/libs/@shumoku/core/src/libs/@shumoku/core/src/models/network-model-from-graph.ts#L283)
