proper_filesize 1.0.0 copy "proper_filesize: ^1.0.0" to clipboard
proper_filesize: ^1.0.0 copied to clipboard

Easily convert and format file sizes in your Dart applications. This library handles bytes, metric/binary units, and provides human-readable output for user interfaces, data processing, and more.

Changelog #

1.0.0 (2025-01-12) #

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.

0.0.2 - Documentation Update #

  • Updates documentation

0.0.1 - Initial Release #

  • Initial release
7
likes
0
points
2.28k
downloads

Publisher

unverified uploader

Weekly Downloads

Easily convert and format file sizes in your Dart applications. This library handles bytes, metric/binary units, and provides human-readable output for user interfaces, data processing, and more.

Repository (GitHub)
View/report issues

License

unknown (license)

More

Packages that depend on proper_filesize