pretty-bytes is a tiny JavaScript package that transforms numbers (representing byte sizes) into human-readable strings. It automatically applies the most relevant unit (bytes, KB, MB, GB, TB, PB, EB, ZB, YB) for clear and concise display. It's perfect for showing file sizes, storage capacity, or data transfer rates in a user-friendly format. Options are available for customizing the output with separators, locale settings, and signed representation.
The npm package pretty-bytes has had sporadic releases since February 2014. Releases were more frequent in earlier years, with multiple versions in some months. Release frequency has slowed, with only a few versions released since 2022.The latest releases are versions 7.0.0 in April 2025 and 7.0.1 in August 2025. As of today, September 6, 2025, there have been no releases this month.
Pretty-bytes downloads show a generally upward trend from March 2024 to July 2025, peaking at over 77 million. August 2025 saw a decrease to around 69 million. September 2025 downloads are significantly lower, but the month is not yet complete.