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 stale · no recent hits
total hits 9
actors 3 distinct systems
last hit 19d ago AhrefsBot
top countries 🇺🇸 United States · 🇨🇦 Canada · 🇫🇷 France · 🇬🇧 United Kingdom · 🇩🇪 Germany
API endpoints
full doc /v1/registry/prettysize
install /v1/registry/prettysize/install
compatibility /v1/registry/prettysize/compatibility