super_file_size

pub package likes popularity pub points

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, and String 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

📦 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")

Libraries

super_file_size