{"id":37173949,"url":"https://github.com/maxaudron/magicmime","last_synced_at":"2026-01-14T20:19:47.621Z","repository":{"id":57505108,"uuid":"231584357","full_name":"maxaudron/magicmime","owner":"maxaudron","description":"Go bindings for libmagic to detect MIME types","archived":false,"fork":true,"pushed_at":"2020-01-03T12:34:11.000Z","size":1203,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-08-14T23:54:48.106Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":false,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":"rakyll/magicmime","license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/maxaudron.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2020-01-03T12:31:18.000Z","updated_at":"2020-01-03T12:34:16.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/maxaudron/magicmime","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/maxaudron/magicmime","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/maxaudron%2Fmagicmime","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/maxaudron%2Fmagicmime/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/maxaudron%2Fmagicmime/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/maxaudron%2Fmagicmime/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/maxaudron","download_url":"https://codeload.github.com/maxaudron/magicmime/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/maxaudron%2Fmagicmime/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28434422,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-14T18:57:19.464Z","status":"ssl_error","status_checked_at":"2026-01-14T18:52:48.501Z","response_time":107,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2026-01-14T20:19:46.846Z","updated_at":"2026-01-14T20:19:47.614Z","avatar_url":"https://github.com/maxaudron.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# magicmime [![Build Status](http://img.shields.io/travis/rakyll/magicmime/master.svg?style=flat)](https://travis-ci.org/rakyll/magicmime) [![GoDoc](https://godoc.org/github.com/rakyll/magicmime?status.svg)](https://godoc.org/github.com/rakyll/magicmime)\n\n`magicmime` is a Go package which allows you to discover a file's mimetype by looking for magic numbers in its content. It could be used as a supplementary for Go's [`mime`](http://golang.org/pkg/mime/) package which only interprets the file extension to detect mimetypes. Internally, it implements [libmagic(3)](http://linux.die.net/man/3/libmagic) bindings.\n\nTested on Linux and Mac OS X, should be working on BSD. You could be able to build and make it working with Cygwin on Windows.\n\n## Prerequisites\nThis uses the `libmagic` library from the `file` tool, so you might need to install the development package for `libmagic`. On Debian or Ubuntu: `apt-get install libmagic-dev`. On RHEL, CentOS or Fedora: `yum install file-devel`. On Mac OS X: `brew install libmagic`. If you don't have the required package, compilation will be terminated by an error saying `magic.h` cannot be found.\n\n\n## Usage\nIn order to start, go get this repository:\n\n``` sh\ngo get github.com/rakyll/magicmime\n```\n\n### Examples\n\nSee [godoc examples](https://godoc.org/pkg/github.com/rakyll/magicmime/#pkg-examples).\n\n## Docs\n\nhttps://godoc.org/github.com/rakyll/magicmime\n\n## License\n    Copyright 2013 Google Inc. All Rights Reserved.\n    Licensed under the Apache License, Version 2.0 (the \"License\");\n    you may not use this file except in compliance with the License.\n    You may obtain a copy of the License at\n         http://www.apache.org/licenses/LICENSE-2.0\n    Unless required by applicable law or agreed to in writing, software\n    distributed under the License is distributed on an \"AS IS\" BASIS,\n    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n    See the License for the specific language governing permissions and\n    limitations under the License.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmaxaudron%2Fmagicmime","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmaxaudron%2Fmagicmime","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmaxaudron%2Fmagicmime/lists"}