ApacheMimeTypesToDotNet
Convert the apache mime.types file to C# Dictionary<string, string> keyed by file extension.
Install / Use
/learn @cymen/ApacheMimeTypesToDotNetREADME
Convert the Apache mime.types file to C# Dictionary<string, string> keyed by file extension. See ApacheMimeTYpes.cs for example output. The source file is located here:
http://svn.apache.org/repos/asf/httpd/httpd/trunk/docs/conf/mime.types
And is used per the permission at the top:
# This file maps Internet media types to unique file extension(s).
# Although created for httpd, this file is used by many software systems
# and has been placed in the public domain for unlimited redisribution.
The generated code looks like this:
using System;
using System.Collections.Generic;
namespace ApacheMimeTypes
{
class Apache
{
public static Dictionary<string, string> MimeTypes = new Dictionary<string, string>
{
{ "123", "application/vnd.lotus-1-2-3" },
{ "3dml", "text/vnd.in3d.3dml" },
{ "3g2", "video/3gpp2" },
...
The full output is here: https://github.com/cymen/ApacheMimeTypesToDotNet/blob/master/ApacheMimeTypes.cs
Related Skills
node-connect
354.3kDiagnose OpenClaw node connection and pairing failures for Android, iOS, and macOS companion apps
frontend-design
112.3kCreate distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, or applications. Generates creative, polished code that avoids generic AI aesthetics.
openai-whisper-api
354.3kTranscribe audio via OpenAI Audio Transcriptions API (Whisper).
qqbot-media
354.3kQQBot 富媒体收发能力。使用 <qqmedia> 标签,系统根据文件扩展名自动识别类型(图片/语音/视频/文件)。
