Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
Module

x/astro_compress/dist/lib/format-bytes.d.ts>default

🗜️ AstroJS compression utilities. Compress CSS, HTML, JavaScript and more.
Go to Latest
variable default
import { default } from "https://deno.land/x/astro_compress@v1.0.6/dist/lib/format-bytes.d.ts";

It takes a number of bytes and returns a string with the number of bytes formatted in a human readable way

type

(bytes: number, decimals?: number) => Promise<string>