(value: number)
| 575 | } |
| 576 | |
| 577 | function formatBytes(value: number) { |
| 578 | if (value < 1024) return `${value} B` |
| 579 | if (value < 1024 * 1024) return `${Math.ceil(value / 1024)} KB` |
| 580 | return `${Math.ceil(value / (1024 * 1024))} MB` |
| 581 | } |
| 582 | |
| 583 | export * as SessionTools from "./tools" |
no outgoing calls
no test coverage detected