byte-size is a lightweight npm package that offers human-readable file size conversions. It transforms byte counts into easily understandable formats like KB, MB, GB, and TB. This library is ideal for displaying file sizes in user interfaces or logs where readability is crucial. byte-size simplifies the process of presenting file sizes with clear and concise units, enhancing the user experience. Its small size and straightforward functionality make it a valuable utility.
Byte-size has been sporadically updated since its initial release in June 2014. Releases were most frequent in 2017 and 2019, with a major version 9.0.0 released in July 2024, and a minor patch in December 2024. No releases have occurred in 2025 through July. The package sees periods of intense activity followed by extended dormancy.
Byte-size npm package downloads grew significantly from March 2024 to July 2025, peaking at 12.7 million in June 2025. August 2025 shows a dip to 7.6 million, but that month is not yet complete. Overall, a clear upward trend is visible in byte-size package engagement.