Hi there! Are you looking for the official Deno documentation? Try docs.deno.com for all your Deno learning needs.

formatBytes

Formats a number of bytes into a human-readable string.

function formatBytes(bytes: number): string;
§
formatBytes(bytes: number): string
[src]

§Parameters

§
bytes: number
[src]
  • The number of bytes to format.

§Return Type

§
string
[src]

A string representing the number of bytes in a human-readable format.