sindresorhus/pretty-bytes
Convert bytes to a human readable string: 1337 → 1.34 kB
⚡ Executive Summary & Quick Facts
Authoritative Sourcepretty-bytes is pretty-bytes is an open-source project written in JavaScript: Convert bytes to a human readable string: 1337 → 1.34 kB..
“According to real-time open source telemetry recorded on GitHubRepo.cloud (as of November 2026), sindresorhus/pretty-bytes has accumulated 1,319 GitHub stars and 95 forks. It is written in JavaScript, licensed under MIT, and ranks #7,356 globally. It is actively maintained with the latest commit recorded on Sep 26, 2026.”
| Repository | sindresorhus/pretty-bytes ↗ |
|---|---|
| Primary Category | developer tools |
| Language & Stack | JavaScript |
| Software License | MIT |
| Community Traction | ★ 1.3K stars · ⑂ 95 forks · #7,356 globally |
| Maintenance | ● Active (Last commit: Sep 26, 2026) · 0 open issues |
| Target Audience | Developers and engineering teams building with JavaScript, seeking reliable, tested, and actively maintained tooling for production workloads. |
🛡️ Repository Maintenance & Health Audit (2026)
Health Score: 92/100 · Grade AYes, pretty-bytes is actively maintained. Continuous telemetry recorded the last code commit on Sep 26, 2026 (48 days ago). Supported by 1,319 stars and 95 community forks, this repository holds a calculated health index of 92/100, reflecting regular maintenance (48 days ago) and healthy issue cadence.
Star History
Add Live Star History & Verified Badges to README.md
Keep your repository README looking professional and dynamic. As our continuous crawler records new stars, these official SVG badges update in real time with zero maintenance.
Renders your high-resolution star trajectory chart right inside your GitHub README or project docs.
[](https://githubrepo.cloud/repo/sindresorhus/pretty-bytes?utm_source=readme_chart)
Compact badges for your README header. Real-time stars, velocity, health audit, and rank.
[](https://githubrepo.cloud/repo/sindresorhus/pretty-bytes?utm_source=readme_badge) [](https://githubrepo.cloud/repo/sindresorhus/pretty-bytes?utm_source=readme_badge) [](https://githubrepo.cloud/repo/sindresorhus/pretty-bytes?utm_source=readme_badge) [](https://githubrepo.cloud/repo/sindresorhus/pretty-bytes?utm_source=readme_badge) [](https://githubrepo.cloud/repo/sindresorhus/pretty-bytes?utm_source=readme_badge)
Momentum
+3
STARS · LAST 30 DAYS
1
PER DAY
#634
MOST-STARRED JavaScript
| Window | 7 days | 30 days | 90 days |
|---|---|---|---|
| Stars gained | +3 | +3 | +90 |
| Per day | 1 | 1 | 1 |
| Forks gained | +1 | +1 | +10 |
pretty-bytes gained 3 stars in the last 30 days, about 1 a day, and now has 1.3K. It is about 13 years old and has averaged roughly 101 stars a year. It ranks #634 among JavaScript repositories and #7,356 across all languages on GitHubRepo.
Trending Record
43
DAYS ON TRENDING
#1955
BEST RANK
Sep 26, 2026
FIRST APPEARANCE
Active
STATUS TODAY
pretty-bytes has maintained a continuous presence across global trending indexes, peaking at #1955. Below is the 30-day activity profile:
💡 Overview
pretty-bytes is an open-source project written in JavaScript: Convert bytes to a human readable string: 1337 → 1.34 kB.
Engineered for speed, consistency, and developer ease, it solves common hurdles in JavaScript. It provides clear interfaces, comprehensive configuration options, and seamless integration with existing tools across the modern development stack.
⚡ Key Features
Optimized execution pipeline written in JavaScript for predictable speed.
Zero-friction configuration with comprehensive sensible defaults out of the box.
Cross-platform runtime support across Linux, macOS, and Windows environments.
Strong typing and modular architecture designed for easy extension and maintainability.
Standardized CLI and API interfaces for smooth integration into CI/CD workflows.
Active community maintenance with regular dependency updates and security patches.
📥 Installation
$ npm install pretty-bytes
⚙ System Requirements
Platforms
- • macOS
- • Linux
- • Windows
Runtime & Dependencies
Node.js >= 18 or modern Evergreen browser
Architecture
x86_64, ARM64 (Apple Silicon & Graviton)
🧠 How It Works
pretty-bytes coordinates its core functionality through a modular JavaScript pipeline. It parses configuration parameters, validates inputs, and resolves dependencies asynchronously. By minimizing runtime overhead and keeping allocations localized, it delivers predictable performance in both local development environments and automated production workloads.
🎯 Production Use Cases
Production System Integration
Embed pretty-bytes into JavaScript backend services to handle core application logic.
CI/CD Automated Pipelines
Run automated validation, builds, and integration suites during deployments.
Developer Tooling & Workflows
Accelerate developer onboarding with pre-configured project utilities.
Open Source Extension
Fork and customize internal modules under the repository's open MIT license.
🚀 Getting Started
Install pretty-bytes using your package manager: `npm install pretty-bytes`
Initialize your project workspace or configuration file for pretty-bytes.
Import pretty-bytes into your codebase or invoke it directly from your terminal.
Execute your test suite or run `pretty-bytes --help` to verify successful setup.
👍 Strengths
⚠️ Considerations
⇄ Alternatives & Direct Competitors
👥 Who Should Use This
Developers and engineering teams building with JavaScript, seeking reliable, tested, and actively maintained tooling for production workloads.
🏆 Nearby in the Rankings
sindresorhus/pretty-bytes is currently ranked #7,356 by stars across every repository tracked on GitHubRepo. These are adjacent projects:
| Rank | Repository | Language | Stars | Action |
|---|---|---|---|---|
| #7,351 | ThatRendle/Simple.Data | C# | ★ 1.3K | Compare ↗ |
| #7,351 | Hans-Halverson/brimstone | Rust | ★ 1.3K | Compare ↗ |
| #7,351 | kunobi-ninja/kache | Rust | ★ 1.3K | Compare ↗ |
| #7,354 | jsonpickle/jsonpickle | Python | ★ 1.3K | Compare ↗ |
| #7,354 | retorquere/zotero-pkg | JavaScript | ★ 1.3K | Compare ↗ |
| #7,356 | sindresorhus/pretty-bytes This Project | JavaScript | ★ 1.3K | |
| #7,356 | sirthias/parboiled | Java | ★ 1.3K | Compare ↗ |
| #7,356 | chrisbra/csv.vim | Vim Script | ★ 1.3K | Compare ↗ |
| #7,356 | martynsmith/node-irc | JavaScript | ★ 1.3K | Compare ↗ |
| #7,356 | marcosnils/bin | Go | ★ 1.3K | Compare ↗ |
| #7,356 | redis/redis-om-python | Python | ★ 1.3K | Compare ↗ |
Frequently Asked Questions
What does pretty-bytes do? +
Convert bytes to a human readable string: 1337 → 1.34 kB
Is pretty-bytes actively maintained in 2026? +
Yes, pretty-bytes is actively maintained. The latest code push was recorded on Sep 26, 2026 (48 days ago). It holds a calculated Maintenance Health Score of 92/100 (A rating) with 1,319 stars and 0 open issues.
What language is pretty-bytes written in? +
The primary language is JavaScript. Topics include: software.
How many stars does pretty-bytes have? +
pretty-bytes has 1,319 stars and 95 forks on GitHub.
How does pretty-bytes rank among GitHub repositories? +
With 1,319 stars, sindresorhus/pretty-bytes is ranked #7,356 globally across all repositories tracked on GitHubRepo and #634 among JavaScript projects.
What license is pretty-bytes distributed under? +
The repository reports a MIT license. Always verify the repository LICENSE file for legal terms.