Skip to content
pubscout

filesize

2.0.1, released 6 years ago by an unverified publisher

Translate raw file size numbers or strings into human readable strings.

WASM-readyRepository archived
$ flutter pub add filesize
Source repository

What it does

Provides a simple function to convert raw file sizes into human-readable strings with customizable precision. It supports input as either numbers or strings and calculates standard storage units like KB, MB, and TB.

AI-written summary of version 2.0.1, based on the package's README and metadata. Report an inaccuracy

Use it when

  • You need to display file sizes in a human-readable format
  • You want a lightweight library with no external dependencies

Skip it when

  • You require complex file system manipulation or path resolution

Strengths

  • Extremely lightweight with no dependencies
  • Supports both number and string inputs
  • Allows specifying the number of decimal digits

Weaknesses

  • Very limited scope providing only a single formatting utility

Setup

Kind
Pure Dart
Effort
Low
Code generation
No
Direct dependencies
0
filesize(664365320); // "633.59 MB"

Alternatives

Packages that do the same job and could replace filesize.