Package
pretty-bytes
Convert bytes to a human readable string: 1337 → 1.34 kB
Key numbers
As of 25 Sept 2026
- Weekly downloads
- 25.1m
- +54% over 12 months
- Gzip bundle size
- -
- No Bundlephobia data
- Dependencies
- 0
- Direct, from package.json
- Last release
- 21 days ago
- v7.1.3
- GitHub stars
- 1.3k
- 93 forks
- Open issues / PRs
- 0 / 0
- Contributors
- -
- Commits, last 52 weeks
- 8
Downloads
Last week 2026-09-15 to 2026-09-21
25,114,660 downloads last week, 113,764,892 in the last month. The 12-month change of +54% compares the average of the last 4 weeks with the first 4 weeks of the series.
- Releases, last 12 months
- 332 in total
- Latest version
- 7.1.3, 3 Sept 202621 days ago
- First published
- 9 Feb 2014
- Last push to GitHub
- 18 Sept 20266 days before the snapshot
- Repository archived
- No
- Open issues
- 0
- Open pull requests
- 0
- Commits, last 52 weeks
- 8
- Dependents on npm
- 2,055
Major versions
- v7 first release 7.0.0, 29 Apr 2025
- v6 first release 6.0.0, 13 Feb 2022
- v5 first release 5.0.0, 6 May 2018
- v4 first release 4.0.0, 26 Aug 2016
- v3 first release 3.0.0, 17 Dec 2015
- v2 first release 2.0.0, 20 May 2015
- v1 first release 1.0.0, 9 Aug 2014
- v0 first release 0.1.0, 9 Feb 2014
Recent releases
| Version | Published |
|---|---|
| 7.1.3 | 3 Sept 2026 |
| 7.1.2 | 28 Aug 2026 |
| 7.1.1 | 15 Jul 2026 |
| 7.1.0 | 21 Sept 2025 |
| 7.0.1 | 12 Aug 2025 |
| 7.0.0 | 29 Apr 2025 |
| 6.1.1 | 16 Jul 2023 |
| 6.1.0 | 4 Feb 2023 |
| 6.0.0 | 13 Feb 2022 |
| 5.6.0 | 21 Feb 2021 |
| 5.5.0 | 23 Dec 2020 |
| 5.4.1 | 31 Aug 2020 |
| 5.4.0 | 29 Aug 2020 |
| 5.3.0 | 26 Jul 2019 |
- Module format
- ESM onlyFrom package.json type, main and exports fields
- TypeScript types
- Bundled
- Node.js engine range
- >=20
- Runtimes
- -
- Unpacked size (npm)
- 16 kB
- Dependencies (0)
- None
npm install pretty-bytes- jsDelivr
https://cdn.jsdelivr.net/npm/pretty-bytes@7.1.3/ - unpkg
https://unpkg.com/pretty-bytes@7.1.3/ - esm.sh
https://esm.sh/pretty-bytes@7.1.3
Indexability: Indexed.