(value: string)
| 569 | } |
| 570 | |
| 571 | function base64Size(value: string) { |
| 572 | const trimmed = value.replace(/\s/g, "") |
| 573 | const padding = trimmed.endsWith("==") ? 2 : trimmed.endsWith("=") ? 1 : 0 |
| 574 | return Math.max(0, Math.floor((trimmed.length * 3) / 4) - padding) |
| 575 | } |
| 576 | |
| 577 | function formatBytes(value: number) { |
| 578 | if (value < 1024) return `${value} B` |
no outgoing calls
no test coverage detected