super_file_size 1.0.0
super_file_size: ^1.0.0 copied to clipboard
A simple and lightweight Dart package that converts raw byte sizes into human-readable strings (e.g., 1536 → 1.50 KB).
super_file_size #
A lightweight and flexible Dart package to convert raw byte values into human-readable file sizes (e.g. 1536 → 1.50 KB).
✨ Features #
- Supports
int,double, andStringinputs - 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
📦 Installation #
Add this line to your pubspec.yaml:
dependencies:
super_file_size: ^1.0.0
Inspired by [filesize.js](https://github.com/avoidwork/filesize.js "filesize.js")