Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/deno/cli/js/util.ts>humanFileSize

A modern runtime for JavaScript and TypeScript.
Go to Latest
function humanFileSize
import { humanFileSize } from "https://deno.land/x/deno@v0.28.0/cli/js/util.ts";

Utility function to turn the number of bytes into a human readable unit

Parameters

bytes: number

Returns

string