file_magic_number 0.7.0 copy "file_magic_number: ^0.7.0" to clipboard
file_magic_number: ^0.7.0 copied to clipboard

A Flutter package to detect file types based on their magic number instead of MIME types. Supports Flutter on mobile, desktop, and web without native code.

0.7.0 #

  • Fixed bytes in example project.
  • Fixed mp4 were not detected properly.
  • Created offset and regular file type detection.
  • Added MagicNumberMatchType for offset and exact detection.

0.6.0 #

  • Added much more formats.
  • Improved documentation.
  • Simplified verification.
  • Added tests for each format.
  • Added debug utilities.
  • Very large files are shortened to the first few bytes to speed up the library. This means up to +10x faster on large files.

0.5.1 #

  • Fixed image on pub.dev

0.5.0 #

  • Added coverage in CI
  • Added more test
  • Improved readme
  • Created as Dart package

0.4.0 #

General #

  • Update dependencies on example project.
  • Updated readme.

0.3.1 #

General #

  • Some minor improvements.

0.3.0 #

General #

  • Refactored structure.
  • BREAKING CHANGE: detectFileType use a Uint8List instead of a String as parameter doing it universal.

Web #

  • Added web development.

0.2.0 #

General #

  • Example improvements.
  • BREAKING CHANGE: Returns MagicNumberType when detectFileType is called.

0.1.0 #

General #

  • Added CI.
  • Added Example project.
  • Added Readme.
  • Added documentation.
  • Added test.
23
likes
0
points
1.21k
downloads

Publisher

verified publishervictorcarreras.dev

Weekly Downloads

A Flutter package to detect file types based on their magic number instead of MIME types. Supports Flutter on mobile, desktop, and web without native code.

Repository (GitHub)
View/report issues

License

unknown (license)

Dependencies

web

More

Packages that depend on file_magic_number