bytes-formatter

JSON →
library 21.6.15 ·javascript
verified Jun 4, 2026

A lightweight JavaScript/TypeScript library for converting byte values into human-readable strings with units (bytes, KB, MB, GB, TB, PB). Version 21.6.15 is stable and actively maintained (no recent releases). It follows IEEE 1541 (binary prefix) standard: 1 KB = 1024 bytes. Ships TypeScript definitions. Differentiators: zero dependencies, simple API, focus on binary units (as opposed to metric in 'pretty-bytes').