{"id":59038,"library":"tree-magic-mini","title":"Tree Magic Mini","description":"Determines the MIME type of a file by traversing a filetype tree.","status":"active","version":"3.2.2","language":"rust","source_language":null,"source_url":"https://github.com/mbrubeck/tree_magic","tags":["mime","file","detection","type","magic"],"install":[{"cmd":"# Cargo.toml\n[dependencies]\ntree_magic_mini = \"3.2.2\"","lang":"toml","label":"Cargo.toml"},{"cmd":"cargo add tree_magic_mini","lang":"bash","label":"cargo add"}],"dependencies":[],"imports":[{"symbol":"from_filepath","correct":"use tree_magic_mini::from_filepath;"}],"quickstart":{"code":"use tree_magic_mini::from_filepath;\n\nfn main() {\n    let mime = from_filepath(\"/path/to/file.txt\").unwrap_or(\"application/octet-stream\");\n    println!(\"MIME type: {}\", mime);\n}","lang":"rust","description":"Gets the MIME type of a file by its path."},"warnings":[],"env_vars":null,"search_vec":"'detect':18 'determin':4 'file':10,17 'filetyp':14 'magic':2,20 'mime':6,16 'mini':3 'travers':12 'tree':1,15 'type':7,19","created_at":"2026-06-16T16:47:55.239135+00:00","updated_at":"2026-06-16T16:47:55.239135+00:00","problems":[],"ecosystem":"crates","meta_description":null,"install_score":null,"quickstart_score":null,"quickstart_tag":null,"pypi_latest":null,"cli_name":null,"cli_version":null,"type":"library","homepage":"https://github.com/mbrubeck/tree_magic","github":"https://github.com/mbrubeck/tree_magic","docs":"https://docs.rs/tree_magic_mini/","changelog":null,"pypi":null,"npm":null,"openapi_spec":null,"status_page":null,"smithery":null,"categories":["utility"],"base_url":null,"auth_type":null,"provenance":{"verified_status":null,"verified_at":null,"last_verified":"2026-06-16","next_check":"2026-12-13","install_tag":null}}