Skip to content
JS
Package

byte-size

Convert a bytes or octets value (e.g. 34565346) to a human-readable string ('34.6 MB'). Choose between metric or IEC units.

v9.0.1, 6 Dec 2024MITESM + CommonJSTypes: None
$ npm install byte-size

Key numbers

As of 25 Sept 2026
Weekly downloads
1.7m
-7% over 12 months
Gzip bundle size
-
No Bundlephobia data
Dependencies
0
Direct, from package.json
Last release
1 year ago
v9.0.1
GitHub stars
-
Open issues / PRs
- / -
Contributors
-
Commits, last 52 weeks
-

Downloads

Last week 2026-09-15 to 2026-09-21
01m2m3mSept 2025Mar 2026Sept 2026High 2.7m (3 Mar 2026)Low 994.1k (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.

1,741,642 downloads last week, 8,022,015 in the last month. The 12-month change of -7% compares the average of the last 4 weeks with the first 4 weeks of the series.

Releases, last 12 months
024 in total
Latest version
9.0.1, 6 Dec 20241 year ago
First published
7 Jun 2014
Last push to GitHub
-
Repository archived
-
Open issues
-
Open pull requests
-
Commits, last 52 weeks
-
Dependents on npm
-

Major versions

  1. v9 first release 9.0.0, 20 Jul 2024
  2. v8 first release 8.0.0, 4 Jul 2021
  3. v7 first release 7.0.0, 27 May 2020
  4. v6 first release 6.0.0, 22 Sept 2019
  5. v5 first release 5.0.0, 21 Dec 2018
  6. v4 first release 4.0.0, 21 Jun 2017
  7. v3 first release 3.0.0, 26 Aug 2016
  8. v2 first release 2.0.0, 3 Oct 2015
  9. v1 first release 1.0.0, 20 Jul 2015
  10. v0 first release 0.1.0, 7 Jun 2014

Recent releases

VersionPublished
9.0.16 Dec 2024
9.0.020 Jul 2024
8.2.120 Jul 2024
8.2.020 Jul 2024
8.1.13 May 2023
8.1.017 Aug 2021
8.0.04 Jul 2021
7.0.14 Mar 2021
7.0.027 May 2020
6.2.027 Oct 2019
6.1.025 Oct 2019
6.0.022 Sept 2019
5.0.121 Dec 2018
5.0.021 Dec 2018
Module format
ESM + CommonJSFrom package.json type, main and exports fields
TypeScript types
None
Node.js engine range
>=12.17
Runtimes
-
Unpacked size (npm)
32 kB
Dependencies (0)
None
Peer dependencies (1)
@75lb/nature
npm install byte-size
  • jsDelivrhttps://cdn.jsdelivr.net/npm/byte-size@9.0.1/
  • unpkghttps://unpkg.com/byte-size@9.0.1/
  • esm.shhttps://esm.sh/byte-size@9.0.1
Sources: npm registry, npm downloads API. Data fetched 25 Sept 2026.

Indexability: Not indexed (discovery only): GitHub data not fetched yet; no category.