Skip to content
JS
Package

bytes

Utility to parse a string bytes to bytes and vice-versa

v3.1.2, 28 Jan 2022MIT-Types: None
$ npm install bytes

Key numbers

As of 25 Sept 2026
Weekly downloads
104.1m
+90% over 12 months
Gzip bundle size
-
No Bundlephobia data
Dependencies
0
Direct, from package.json
Last release
4 years ago
v3.1.2
GitHub stars
474
58 forks
Open issues / PRs
5 / 6
Contributors
20
Commits, last 52 weeks
0

Downloads

Last week 2026-09-15 to 2026-09-21
050m100m150m200mSept 2025Mar 2026Sept 2026High 152.1m (17 Mar 2026)Low 46.7m (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.

104,089,343 downloads last week, 486,038,477 in the last month. The 12-month change of +90% compares the average of the last 4 weeks with the first 4 weeks of the series.

Releases, last 12 months
018 in total
Latest version
3.1.2, 28 Jan 20224 years ago
First published
11 Jun 2012
Last push to GitHub
5 Jul 2024811 days before the snapshot
Repository archived
No
Open issues
5
Open pull requests
6
Commits, last 52 weeks
0
Dependents on npm
2,510

Major versions

  1. v3 first release 3.0.0, 31 Aug 2017
  2. v2 first release 2.0.0, 12 Apr 2015
  3. v1 first release 1.0.0, 5 May 2014
  4. v0 first release 0.0.1, 11 Jun 2012

Recent releases

VersionPublished
3.1.228 Jan 2022
3.1.115 Nov 2021
3.1.023 Jan 2019
3.0.031 Aug 2017
2.5.025 Mar 2017
2.4.01 Jun 2016
2.3.016 Feb 2016
2.2.014 Nov 2015
2.1.022 May 2015
2.0.221 May 2015
2.0.18 May 2015
2.0.012 Apr 2015
1.0.05 May 2014
0.3.020 Mar 2014
Module format
-Not determined from package.json
TypeScript types
None
Node.js engine range
>= 0.8
Runtimes
-
Unpacked size (npm)
12 kB
Dependencies (0)
None
npm install bytes
  • jsDelivrhttps://cdn.jsdelivr.net/npm/bytes@3.1.2/
  • unpkghttps://unpkg.com/bytes@3.1.2/
  • esm.shhttps://esm.sh/bytes@3.1.2
Sources: npm registry, npm downloads API, GitHub API. Data fetched 25 Sept 2026.

Indexability: Not indexed (discovery only): no category.