mimeTypes top-level constant
MIME types for common file extensions.
Implementation
const mimeTypes = <String, String>{
'dart': 'text/x-dart',
'ts': 'text/typescript',
'tsx': 'text/typescript',
'js': 'text/javascript',
'jsx': 'text/javascript',
'py': 'text/x-python',
'rb': 'text/x-ruby',
'go': 'text/x-go',
'rs': 'text/x-rust',
'java': 'text/x-java',
'kt': 'text/x-kotlin',
'swift': 'text/x-swift',
'c': 'text/x-c',
'cpp': 'text/x-c++',
'h': 'text/x-c',
'hpp': 'text/x-c++',
'cs': 'text/x-csharp',
'html': 'text/html',
'css': 'text/css',
'scss': 'text/x-scss',
'json': 'application/json',
'yaml': 'text/yaml',
'yml': 'text/yaml',
'xml': 'text/xml',
'md': 'text/markdown',
'txt': 'text/plain',
'sql': 'text/x-sql',
'sh': 'text/x-shellscript',
'bash': 'text/x-shellscript',
'zsh': 'text/x-shellscript',
'fish': 'text/x-shellscript',
'ps1': 'text/x-powershell',
'toml': 'text/x-toml',
'ini': 'text/x-ini',
'cfg': 'text/x-ini',
'env': 'text/plain',
'dockerfile': 'text/x-dockerfile',
'makefile': 'text/x-makefile',
'cmake': 'text/x-cmake',
'gradle': 'text/x-gradle',
'svg': 'image/svg+xml',
'png': 'image/png',
'jpg': 'image/jpeg',
'jpeg': 'image/jpeg',
'gif': 'image/gif',
'webp': 'image/webp',
'pdf': 'application/pdf',
'zip': 'application/zip',
'tar': 'application/x-tar',
'gz': 'application/gzip',
};