human-unit

JSON →
library 2.0.1 ·javascript
verified Jun 4, 2026

A flexible unit formatter for human-readable file size, time, and custom units. Current stable version 2.0.1, shipped as ESM with TypeScript types. Differentiates by allowing per-unit factors and ceils for precise control over unit bumping, using mixed SI/IEC standards for file sizes. Suitable for formatting bytes, durations, or any custom unit system.