Skip to content
JS
Package

pretty-bytes

Convert bytes to a human readable string: 1337 → 1.34 kB

v7.1.3, 3 Sept 2026MITESM onlyTypes: BundledInternationalisation
$ npm install pretty-bytes

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
010m20m30m40mSept 2025Mar 2026Sept 2026High 32.2m (25 Aug 2026)Low 10.3m (23 Dec 2025)
Weekly npm downloads, one point per week, weeks starting 23 Sept 2025 to 15 Sept 2026. The y axis starts at zero.

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

  1. v7 first release 7.0.0, 29 Apr 2025
  2. v6 first release 6.0.0, 13 Feb 2022
  3. v5 first release 5.0.0, 6 May 2018
  4. v4 first release 4.0.0, 26 Aug 2016
  5. v3 first release 3.0.0, 17 Dec 2015
  6. v2 first release 2.0.0, 20 May 2015
  7. v1 first release 1.0.0, 9 Aug 2014
  8. v0 first release 0.1.0, 9 Feb 2014

Recent releases

VersionPublished
7.1.33 Sept 2026
7.1.228 Aug 2026
7.1.115 Jul 2026
7.1.021 Sept 2025
7.0.112 Aug 2025
7.0.029 Apr 2025
6.1.116 Jul 2023
6.1.04 Feb 2023
6.0.013 Feb 2022
5.6.021 Feb 2021
5.5.023 Dec 2020
5.4.131 Aug 2020
5.4.029 Aug 2020
5.3.026 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
  • jsDelivrhttps://cdn.jsdelivr.net/npm/pretty-bytes@7.1.3/
  • unpkghttps://unpkg.com/pretty-bytes@7.1.3/
  • esm.shhttps://esm.sh/pretty-bytes@7.1.3
Sources: npm registry, npm downloads API, GitHub API. Data fetched 25 Sept 2026.

Indexability: Indexed.