💾 human-memsize
Make your byte sizes human-friendly. Because
1045678looks scary, but1 MiBfeels just right.
✨ Features
- 🧩 Binary units — Uses
KiB,MiB,GiB,TiB - 🎯 Smart formatting:
- Shows bytes up to 2 KiB for clarity.
- Uses no decimals for exact numbers →
2 MiB, not2.0 MiB. - Uses one decimal when needed →
1.5 MiB.
🛠️ Usage
Add to your Cargo.toml:
[]
= "0.1"
Copyright 2025 Peter Bjorklund. All rights reserved.