diff --git a/README.md b/README.md index 0e3ee21..2f1cc40 100644 --- a/README.md +++ b/README.md @@ -9,7 +9,7 @@ Audited & minimal JS implementation of Salsa20, ChaCha and AES. - 💼 AES: ECB, CBC, CTR, CFB, GCM, SIV (nonce misuse-resistant), AESKW, AESKWP - 💃 Salsa20, ChaCha, XSalsa20, XChaCha, ChaCha8, ChaCha12, Poly1305 - 🥈 Two AES implementations: pure JS or friendly wrapper around webcrypto -- 🪶 53KB (9KB gzipped) for everything, 7KB (3KB gzipped) for ChaCha build +- 🪶 29KB (11KB gzipped) for everything, 7KB (3KB gzipped) for ChaCha build Take a glance at [GitHub Discussions](https://github.com/paulmillr/noble-ciphers/discussions) for questions and support. diff --git a/build/package.json b/build/package.json index 3e29e63..be858fb 100644 --- a/build/package.json +++ b/build/package.json @@ -10,6 +10,7 @@ }, "scripts": { "build:release": "npx esbuild --bundle input.js --outfile=`npx jsbt outfile` --global-name=`npx jsbt global`", - "build:min": "npx esbuild --minify --bundle input.js --outfile=`npx jsbt outfile` --global-name=`npx jsbt global`" + "build:min": "npx esbuild --minify --bundle input.js --outfile=`npx jsbt outfile` --global-name=`npx jsbt global`", + "build:gzip": "gzip -c8 `npx jsbt outfile` > `npx jsbt outfile`.gz" } }