From 36486007ccada8c31d30e8f528d21233cabce32c Mon Sep 17 00:00:00 2001 From: Murilo Ijanc Date: Sun, 26 Jul 2026 15:01:02 -0300 Subject: Initial import --- scripts/size.js | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 scripts/size.js (limited to 'scripts') diff --git a/scripts/size.js b/scripts/size.js new file mode 100644 index 0000000..7583e86 --- /dev/null +++ b/scripts/size.js @@ -0,0 +1,15 @@ +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`, + ); +} -- cgit v1.3