A lightweight and flexible Dart package to convert raw byte values into human-readable file sizes (e.g. 1536 → 1.50 KB
).
- Supports
int
,double
, andString
inputs - Handles negative and fractional values
- Works with binary (1024) and decimal (1000) dividers
- Customizable rounding precision
- Supports up to exabytes (EB)
- Simple, dependency-free, and pure Dart
Add this line to your pubspec.yaml
:
dependencies:
super_file_size: ^1.0.0
Inspired by filesize.js