A Rust-powered build compression tool that creates gzip, brotli, zstd, and deflate compressed file variants alongside originals for production UI deployments. Version 1.1.4 ships TypeScript definitions and supports both programmatic (Rust and Node.js) and CLI usage. Key differentiator: aggressively configured compression settings in Rust for maximum reduction, outperforming pure-JS compressors particularly for brotli and zstd. Suitable for build pipelines of static sites or SPAs.
npm install ui-build-compressionVerified import paths — ran on the pinned version, not inferred.
Compresses all static files in the given directory using gzip, brotli, zstd, and deflate, generating .gz, .br, .zst, .zz alongside originals.
Always use await or attach .catch() to handle errors.
Consider using a smaller subdirectory or exclude large binary files if needed. No built-in filter yet.
Prefix with npx: npx ui-build-compression /path/to/dir
Run 'npm install ui-build-compression' or 'yarn add ui-build-compression'.
Use named import: import { compress } from 'ui-build-compression'Provide an absolute path or ensure relative path is correct from process.cwd().
No dependency data recorded yet.