Skip to main content
The Deno 2 Release Candidate is here
Learn more
Module

x/astro_compress/src/lib/format-bytes.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.5/src/lib/format-bytes.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?) => unknown