{"id":16393038,"url":"https://github.com/progm/mime-typer","last_synced_at":"2025-11-11T21:27:18.583Z","repository":{"id":19262774,"uuid":"22498800","full_name":"ProGM/mime-typer","owner":"ProGM","description":"A gem to detect mime type of a file, using libmagic.","archived":false,"fork":false,"pushed_at":"2014-08-06T08:51:02.000Z","size":236,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-06-28T15:06:44.296Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Ruby","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ProGM.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2014-08-01T07:00:51.000Z","updated_at":"2016-04-06T06:55:31.000Z","dependencies_parsed_at":"2022-09-25T05:21:24.999Z","dependency_job_id":null,"html_url":"https://github.com/ProGM/mime-typer","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/ProGM/mime-typer","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ProGM%2Fmime-typer","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ProGM%2Fmime-typer/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ProGM%2Fmime-typer/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ProGM%2Fmime-typer/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ProGM","download_url":"https://codeload.github.com/ProGM/mime-typer/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ProGM%2Fmime-typer/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":262893636,"owners_count":23380710,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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":"2024-10-11T04:52:12.527Z","updated_at":"2025-11-11T21:27:18.554Z","avatar_url":"https://github.com/ProGM.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"MIME Typer\n==================\n\nA simple library to detect mime type of a file, using libmagic\n\n## Installation: ##\nAdd this line in your Gemfile\n\n    gem 'mime-typer'\n\n## Run tests: ##\n\n    bundle exec rake\n\n## Requirements: ##\nIt requires both [awk](http://en.wikipedia.org/wiki/AWK) and [file](http://en.wikipedia.org/wiki/File_(command)) to be installed and available in your `PATH`. Installation will fail if you miss them.\n\n\n## How to use: ##\n\n    MIME::Typer.detect('path/to/my/image.jpg') # =\u003e 'image/jpg'\n\nYou can also pass an already opened file:\n\n    myfile = File.open('path/to/my/image.jpg')\n    MIME::Typer.detect(myfile) # =\u003e 'image/jpg'\n\n\nIf you want to detect the MIME Type of a remote file you can use the `remote` method\n\n    MIME::Typer.remote('http://www.yoursite.com/image.png') # =\u003e 'image/png'\n    \nThis will load only the first part of the file, so it's quite fast also with large remote files.\n\n**Warning** this feature is quite experimental!\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fprogm%2Fmime-typer","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fprogm%2Fmime-typer","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fprogm%2Fmime-typer/lists"}