{"id":23221057,"url":"https://github.com/aptacode/mimetypelib","last_synced_at":"2026-05-20T14:02:46.491Z","repository":{"id":54954673,"uuid":"251403360","full_name":"Aptacode/MimeTypeLib","owner":"Aptacode","description":"A lightweight C# dotnet standard library containing a huge list of MimeTypes + compatible File Extensions","archived":false,"fork":false,"pushed_at":"2022-12-08T10:10:39.000Z","size":413,"stargazers_count":1,"open_issues_count":1,"forks_count":1,"subscribers_count":2,"default_branch":"Development","last_synced_at":"2025-03-05T23:23:50.639Z","etag":null,"topics":["aptacode","csharp","dotnet","dotnet-core","dotnet-standard","mimetypes","static-mimetypes"],"latest_commit_sha":null,"homepage":"https://aptacode.com","language":"C#","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/Aptacode.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":"2020-03-30T19:09:33.000Z","updated_at":"2021-01-20T12:55:38.000Z","dependencies_parsed_at":"2023-01-25T06:45:48.446Z","dependency_job_id":null,"html_url":"https://github.com/Aptacode/MimeTypeLib","commit_stats":null,"previous_names":["timmoth/aptacode.mimetypes"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Aptacode%2FMimeTypeLib","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Aptacode%2FMimeTypeLib/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Aptacode%2FMimeTypeLib/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Aptacode%2FMimeTypeLib/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Aptacode","download_url":"https://codeload.github.com/Aptacode/MimeTypeLib/tar.gz/refs/heads/Development","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247361598,"owners_count":20926642,"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":["aptacode","csharp","dotnet","dotnet-core","dotnet-standard","mimetypes","static-mimetypes"],"created_at":"2024-12-18T22:15:12.191Z","updated_at":"2026-05-20T14:02:41.446Z","avatar_url":"https://github.com/Aptacode.png","language":"C#","funding_links":[],"categories":[],"sub_categories":[],"readme":"  \u003cimg width=\"256\" height=\"256\" src=\"https://github.com/Timmoth/Aptacode.MimeTypes/blob/master/Resources/banner.jpg\"\u003e\nA lightweight C# .net standard library containing a growing list of over 900 mimetypes and 1600 compatible extensions.\n\n[![NuGet](https://img.shields.io/nuget/v/Aptacode.MimeTypes.svg?style=flat)](https://www.nuget.org/packages/Aptacode.MimeTypes/)\n[![Codacy Badge](https://api.codacy.com/project/badge/Grade/b4609c326d674acd98de15432bc5f69a)](https://www.codacy.com/manual/Timmoth/Aptacode.MimeTypes?utm_source=github.com\u0026amp;utm_medium=referral\u0026amp;utm_content=Timmoth/Aptacode.MimeTypes\u0026amp;utm_campaign=Badge_Grade)\n![last commit](https://img.shields.io/github/last-commit/Timmoth/Aptacode.MimeTypes?style=flat-square\u0026cacheSeconds=86000)\n\n### Usage\n\n```csharp\n\n#using Aptacode.MimeTypes;\n\npublic void Demo(){\n  var mimeType              = MimeTypes.Application.Json;//Get a MimeType\n\n  var typeName              = mimeType.Type;            //\"application\"\n  var subTypeName           = mimeType.Subtype;         //\"json\"\n  var toString              = mimeType.ToString;        //\"application/json\"\n\n  var allMimeTypes          = MimeTypes.All();          //Returns all available MimeTypes\n  var filteredMimeTypes     = MimeTypes.All(\".jpg\");    //Returns all MimeTypes with the given extension\n\n  var allExtensions         = MimeTypes.Extensions.All(); //Returns all available Extensions\n  var filteredExtensions    = MimeTypes.Extensions.All(MimeTypes.Application.Json); //Returns all available Extensions for the given MimeType\n}\n\n```\n\n### Adding MimeTypes\nThe main library is generated from a text file containing a list of MimeTypes, users can modify the list, build \u0026 run the SourceCodeGenerator project and then overwrite 'MimeTypeGroups.cs' and 'MimeTypeExtensions.cs' using the generated files to add statically typed MimeTypes to the library.\nhttps://github.com/Timmoth/Aptacode.MimeTypes/blob/master/CodeGenerator/mimetypes.txt\n\nAlternatively users can modify add new MimeTypes \u0026 modify existing ones at runtime using the static MimeTypes class.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faptacode%2Fmimetypelib","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Faptacode%2Fmimetypelib","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faptacode%2Fmimetypelib/lists"}