MCPcopy Create free account
hub / github.com/WebMCP-org/chrome-devtools-quickstart / formatBytes

Function formatBytes

benchmark/helpers.ts:597–599  ·  view source on GitHub ↗

* Formats bytes as a human-readable string.

(bytes: number)

Source from the content-addressed store, hash-verified

595 * Formats bytes as a human-readable string.
596 */
597function formatBytes(bytes: number): string {
598 return `${(bytes / 1024).toFixed(1)} KB`;
599}
600
601export const cli = {
602 header(title: string): void {

Callers 1

captureAndAnalyzeFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected