{"id":16130653,"url":"https://github.com/zeachco/real-mime-type","last_synced_at":"2026-05-06T13:38:09.202Z","repository":{"id":163017836,"uuid":"637982197","full_name":"zeachco/real-mime-type","owner":"zeachco","description":"MIME types (IANA media types) can be wrong when the user changes the file extension, this package reads the first bytes of the file to ensure they fit the expectations and reverts to default browser mime types when unsupported","archived":false,"fork":false,"pushed_at":"2023-05-10T17:41:43.000Z","size":124,"stargazers_count":0,"open_issues_count":1,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-02-12T20:22:38.247Z","etag":null,"topics":["binary","binary-search","deno","file-upload","filereader-api","mime","mime-types","npm-package"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/zeachco.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-05-08T20:38:25.000Z","updated_at":"2023-05-10T14:13:21.000Z","dependencies_parsed_at":null,"dependency_job_id":"5fbc62bd-4a94-4f1d-8cee-c98b88b00c61","html_url":"https://github.com/zeachco/real-mime-type","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zeachco%2Freal-mime-type","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zeachco%2Freal-mime-type/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zeachco%2Freal-mime-type/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zeachco%2Freal-mime-type/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/zeachco","download_url":"https://codeload.github.com/zeachco/real-mime-type/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247492549,"owners_count":20947545,"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":["binary","binary-search","deno","file-upload","filereader-api","mime","mime-types","npm-package"],"created_at":"2024-10-09T22:17:11.960Z","updated_at":"2025-10-28T23:46:15.972Z","avatar_url":"https://github.com/zeachco.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# real-mime-type\n\nMIME types (IANA media types) can be wrong when the user changes the file\nextension, this package reads the first bytes of the file to ensure they fit the\nexpectations and reverts to default browser mime types when unsupported\n\n## targets\n\nThis package is built using Deno but targets Deno, NPM and ESM\n\n## Generate lib\n\n```bash\ndeno task dev` for watch mode\n```\n\nor\n\n```bash\ndeno task build` for ci\n```\n\n## Demo\n\nhttps://stackblitz.com/edit/react-ts-eqqh3x?file=App.tsx,UploadValidator.tsx\n\n## NPM Package\n\n[@zeachco/real-mime-types](https://www.npmjs.com/package/@zeachco/real-mime-types)\n\nPublish is public (`npm publish --access public`)\n\n## Contributions to package it properly are welcome\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzeachco%2Freal-mime-type","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fzeachco%2Freal-mime-type","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzeachco%2Freal-mime-type/lists"}