Decision Workspace
prettier-bytes vs philiprehberger-byte-fmt vs nornir-humanize
Side-by-side comparison of Rust crates
A blazingly fast and safe, zero-allocation, `no_std`-compatible byte formatter.
Human-readable byte size formatting and parsing
The ONE shared human-readable FORMATTING primitive for the nordisk constellation — byte sizes (`bytes` → `1.5 KiB`, IEC binary; `bytes_si` → `1.5 KB`, SI), compact counts (`count` → `3.4M`), grouped digits (`thousands` → `1,234,567`), durations (`duration`/`duration_ms`/`duration_secs` → `2m 03s`), binary throughput (`throughput` → `3.5 MiB/s`) and ratios (`percent` → `12.3%`). REUSE (LAW #5): eight+ near-identical `human_bytes`/`human_count`/`fmt_elapsed` twins across nornir + facett grew independently and drifted on units (KiB vs KB, `k` vs `K`, space vs none) — this leaf owns the canon so every report/label/UI reads the same. std-only, ZERO runtime deps.
Core Metrics
| prettier-bytes | philiprehberger-byte-fmt | nornir-humanize | |
|---|---|---|---|
| Health Score | 53 | 53 | 47 |
| Total Downloads | 1.3K | 164 | 124 |
| 30d Downloads | 0 | 0 | 0 |
| Dependents | 20 | 0 | 5 |
| Releases | 3 | 10 | 2 |
| Last Updated | 177d ago | 191d ago | 66d ago |
| Age | 5m | 6m | 2m |
Health Breakdown
Technical Details
| prettier-bytes | philiprehberger-byte-fmt | nornir-humanize | |
|---|---|---|---|
| Version | 0.2.1 | 0.1.10 | 0.1.3 |
| Stable (≥1.0) | ✗ No | ✗ No | ✗ No |
| License | MIT | MIT | MIT OR Apache-2.0 |
| Dependencies | 1 | 0 | 1 |
| Crate Size | 10KB | 8KB | 10KB |
| Features | 1 | 0 | 2 |
| Yanked % | 0.0% | 0.0% | 0.0% |
| Edition | 2024 | 2021 | 2021 |
| MSRV | — | 1.70 | — |
| Owners | 1 | 1 | 1 |
Links
Quick Verdict
- •prettier-bytes leads with a health score of 53/100, but none of the options score above 80.