Skip to content
JS
Package

byte-length

Get the real byte length of a string.

v1.0.2, 17 Oct 2017MITCommonJSTypes: Bundled
$ npm install byte-length

Key numbers

As of 25 Sept 2026
Weekly downloads
369.2k
+147% over 12 months
Gzip bundle size
-
No Bundlephobia data
Dependencies
0
Direct, from package.json
Last release
8 years ago
v1.0.2
GitHub stars
8
0 forks
Open issues / PRs
0 / 2
Contributors
-
Commits, last 52 weeks
0

Downloads

Last week 2026-09-15 to 2026-09-21
0200k400k600kSept 2025Mar 2026Sept 2026High 510.2k (8 Sept 2026)Low 98.3k (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.

369,226 downloads last week, 1,868,724 in the last month. The 12-month change of +147% compares the average of the last 4 weeks with the first 4 weeks of the series.

Releases, last 12 months
05 in total
Latest version
1.0.2, 17 Oct 20178 years ago
First published
3 Oct 2015
Last push to GitHub
27 Feb 20231,305 days before the snapshot
Repository archived
No
Open issues
0
Open pull requests
2
Commits, last 52 weeks
0
Dependents on npm
35

Major versions

  1. v1 first release 1.0.0, 15 Oct 2017
  2. v0 first release 0.1.0, 3 Oct 2015

Recent releases

VersionPublished
1.0.217 Oct 2017
1.0.115 Oct 2017
1.0.015 Oct 2017
0.1.118 Dec 2015
0.1.03 Oct 2015
Module format
CommonJSFrom package.json type, main and exports fields
TypeScript types
Bundled
Node.js engine range
Not declared
Runtimes
-
Unpacked size (npm)
-
Dependencies (0)
None
npm install byte-length
  • jsDelivrhttps://cdn.jsdelivr.net/npm/byte-length@1.0.2/
  • unpkghttps://unpkg.com/byte-length@1.0.2/
  • esm.shhttps://esm.sh/byte-length@1.0.2
Sources: npm registry, npm downloads API, GitHub API. Data fetched 25 Sept 2026.

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