import { gzipSync } from "bun"; const files = [ "dist/cepis-autofill.js", "dist/cepis-autofill.min.js", "dist/cepis-autofill.esm.js", ]; for (const path of files) { const bytes = await Bun.file(path).bytes(); const gzipped = gzipSync(bytes).length; console.log( `${path.padEnd(28)} ${String(bytes.length).padStart(6)} B ${String(gzipped).padStart(5)} B gzipped`, ); }