(filePath: string)
| 90 | * Validates if a file path is a supported image |
| 91 | */ |
| 92 | export function isImageFile(filePath: string): boolean { |
| 93 | const ext = path.extname(filePath).toLowerCase() |
| 94 | return SUPPORTED_IMAGE_EXTENSIONS.has(ext) |
| 95 | } |
| 96 | |
| 97 | /** |
| 98 | * Resolves a file path, handling ~, relative paths, etc. |
no outgoing calls
no test coverage detected