# 💾 human-memsize
> **Make your byte sizes human-friendly.**
> Because `1045678` looks scary, but `1 MiB` feels just right.
[](LICENSE)
---
## ✨ 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`, not `2.0 MiB`.
- Uses **one decimal** when needed → `1.5 MiB`.
---
## 🛠️ Usage
Add to your `Cargo.toml`:
```toml
[dependencies]
human-memsize = "0.1"
```
---
_Copyright 2025 Peter Bjorklund. All rights reserved._