prettysize
JSON →A lightweight utility to convert byte counts into human-readable strings (e.g., 1024 → "1 kB") for logging and CLI output. Version 2.0.0 supports sizes from bytes up to exabytes, with options to remove spaces, use single-character suffixes, control decimal places, or return only the numeric value. Minimal dependencies, pure JavaScript, works in Node.js and browsers. Alternatives like filesize.js offer more formatting features, but prettysize focuses on simplicity and small footprint.
Traffic · last 30 days ↑18% vs prev 7d
total hits 34
actors 9 distinct systems
last hit 1d ago AhrefsBot
top countries 🇺🇸 United States · 🇸🇬 Singapore · 🇨🇦 Canada · 🇦🇺 Australia · VN
API endpoints
full doc /v1/registry/prettysize
install /v1/registry/prettysize/install
compatibility /v1/registry/prettysize/compatibility