Skip to main content
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.2.2/util.ts";

Returns human readable byte size expression.

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

Parameters

n: number