# rateFromBps

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

@shumoku/core · 0.4.2 · function

# rateFromBps

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

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

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

## Parameters

| Parameter | Type | Description | Default |
| --- | --- | --- | --- |
| `bps` | `number` | No additional description. | `—` |

## Returns

```
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)
