Skip to content
Detects the mime-type of a file using magic numbers
Rust
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
src
.gitignore
CHANGELOG.md
Cargo.toml
LICENSE
README.md
default_magic.mgc

README.md

MimeDetective

The MimeDetective spies for the magic number of a file or buffer and spits out strongly typed Mimes.

Example

extern crate mime_detective;
use mime_detective::MimeDetective;

let detective = MimeDetective::new().unwrap();
let mime = detective.detect_filepath("Cargo.toml").unwrap();
You can’t perform that action at this time.