brotli-size provides a command-line interface and Node.js API to efficiently determine the Brotli-compressed size of files or strings. It's invaluable for optimizing web assets and reducing transfer overhead. By integrating it into your build process, you can easily track and manage the Brotli compression efficiency of your JavaScript, CSS, and other static assets. This helps ensure optimal loading times and improves your website's performance. The package offers both synchronous and asynchronous methods for size analysis.
The npm package brotli-size saw sporadic releases. Initial releases occurred in 2016-2018, followed by a burst of activity in 2019, including versions 1.0.0, 3.0.0, 3.0.1 and 4.0.0. Since August 2019, there have been no new versions published as of August 2025, indicating a period of inactivity.
Brotli-size npm package downloads show a generally upward trend from February 2024 to July 2025, with significant growth in Q2 2025. August 2025 downloads are lower, but this represents partial month data. The package consistently exceeded 800,000 downloads monthly after March 2024.