(mimeType: string)
| 445 | * @returns File extension without dot, or null if not found |
| 446 | */ |
| 447 | export function getExtensionFromMimeType(mimeType: string): string | null { |
| 448 | return MIME_TO_EXTENSION[mimeType.toLowerCase()] || null |
| 449 | } |
| 450 | |
| 451 | /** |
| 452 | * Format bytes to human-readable file size |
no outgoing calls
no test coverage detected