Skip to content

a tool for determining file types, extensions etc.

License

Notifications You must be signed in to change notification settings

XDream8/file-rs

Repository files navigation

file-rs

a tool for determining file types, an alternative to file

whats done

  • determining file extension
  • determining file type
  • determining file's mime type

building from git source

you have 2 options for mime type detection library. one of them must be enabled:

  • infer(default. smaller but may perform slower sometimes)
  • mime_guess
$ git clone https://codeberg.org/XDream8/file-rs
$ cd file-rs
$ cargo build --profile optimized --no-default-features --features mime_guess
$ ./target/optimized/file-rs

usage

$ file-rs -h
$ file-rs <files> <args>
  • example:
$ file-rs Cargo.toml

benchmarks

  • ‘file-rs‘ used mime-type library: infer
  • ‘file‘ version: 5.44
  • runs: 100 Benchmark1 Benchmark2 Benchmark3

About

a tool for determining file types, extensions etc.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages