PackageTrack
Sign in Get early access

proper_filesize

Standalone file size conversion and formatting library. Generate human-readable output for UIs. Supports metric/binary units (KB, KiB, MB, MiB, etc.)

1.0.2 3.0K downloads/mo #4647 most downloaded on pub.dev gilnobrega/proper_filesize

What this package is like to depend on

Last release 2 years ago

no release in 18 months

Too new to tell

only 2 release windows

Nearly every release is documented

notes for 5 of 5 stable releases

Nothing withdrawn

no release was ever pulled

5 years old

5 releases · first in 2021

0 releases in the last 12 months

see the full history below

Release timeline

5 releases · Jul 2021 to Jan 2025
2022 2023 2024 2025 2026
Release Pre-release

Releases

latest 5
  1. 1.0.2 13 Jan 2025
    Release notes
    • Pluralization: Fixed pluralization for long-format units (e.g., "2 megabytes" instead of "2 megabyte").
    • Typo: Corrected Unit.zetabyte to Unit.zettabyte.
    • README: Minor clarifications to usage instructions and examples.
    Open source →
  2. 1.0.1 13 Jan 2025
    Release notes
    • Docs: Improved package description for pub.dev.
    Open source →
  3. 1.0.0 12 Jan 2025
    Release notes

    Features

    • API Refactor: Refactored the API for improved usability and clarity.
    • New Constructors: Introduced new constructors for creating FileSize objects from bytes and specific units.
    • Unit Enum: Added Unit enum for representing file size units (KB, KiB, MB, MiB, etc.).
    • BaseType Enum: Added BaseType enum to distinguish between metric and binary bases.
    • FormatType Enum: Added FormatType enum for specifying short or long format types.
    • Size conversion: Added a new method toSize to convert a size to another unit.

    Updates

    • Examples: Updated examples to reflect the new API and features.
    • README: Updated README with detailed usage instructions, examples, and badges.
    • License: Updated copyright year in the license file.
    • Test Suite: Added comprehensive unit tests for increased code reliability.
    • Documentation: Generated API documentation for better developer experience.
    • Linting: Added linter rules for improved code quality.
    • pubspec.yaml: Updated package description.

    Breaking Changes

    • The ProperFilesize class has been replaced by the FileSize class.
    • The generateHumanReadableFilesize and parseHumanReadableFilesize methods have been replaced by the FileSize constructors and toString method.
    Open source →
  4. 0.0.2 26 Jul 2021
    Release notes
    • Updates documentation
    Open source →
  5. 0.0.1 26 Jul 2021
    Release notes
    • Initial release
    Open source →

Every package, every release, already written down.

The archive is open and free. Watching your own project is what we are building next.

Browse the archive