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

x/packup/util.ts>byteSize

📦 Zero-config web application packager in Deno
Go to Latest
function byteSize
import { byteSize } from "https://deno.land/x/packup@v0.1.13/util.ts";

Returns human readable byte size expression.

e.g. 1700 bytes -> 1.66KB 1300000 bytes -> 1.24MB

Parameters

n: number