Skip to main content
Deno 2 is finally 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.6/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