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

x/packup/util.ts>byteSize

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

Returns human readable byte size expression.

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

Parameters

n: number