filesize
2.0.1, released 6 years ago by an unverified publisher
Translate raw file size numbers or strings into human readable strings.
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.
- validators2
String validation and sanitization for Dart.
83Compare - package_signature
Retrieve Android package signature (SHA1/SHA256) in a Flutter app.
66Compare - smart_date_formatter
Flutter utility for formatting, parsing and manipulating DateTime with human‑readable strings and ready‑made widgets.
65Compare - proper_filesize
Standalone library for converting between raw bytes and human-readable file sizes in Dart.
43Compare