SwoffSwoff

formatBytes

Format byte values to human-readable string.

formatBytes(bytes)

From swoff/storage.ts. Formats bytes to KB, MB, GB.

import { formatBytes } from "swoff/storage";

formatBytes(1024); // "1 KB"

On this page