npm / pretty-bytes
pretty-bytes
What changed in pretty-bytes 6 to 7, from its official release notes, upgrade guides and advisories. Sources checked 2026-11-30.
3 breaking1 behavior and defaults5 fixes and other
See which of these apply to your code, ranked, in your agent:
npx @unstale/cli initpretty-bytes 77 changes
Breaking changes 1
Node.js 20 is now required to use pretty-bytes.
Behavior and default changes 1
pretty-bytes now supports BigInt values.
Fixes and other changes 5
Formatting edge cases are fixed.
Options are validated.
Fixes fractional digit formatting when localization is disabled.
Fixes rounding across unit boundaries when formatting byte values.
Fixes excessive precision when formatting numbers less than 1.
pretty-bytes 62 changes
Breaking changes 2
The package now requires Node.js 14.
The package is now pure ESM, changing how developers import and use it.