MCPcopy
hub / github.com/codeaashu/claude-code / isImageFile

Function isImageFile

web/lib/fileViewerStore.ts:48–51  ·  view source on GitHub ↗
(filePath: string)

Source from the content-addressed store, hash-verified

46]);
47
48export function isImageFile(filePath: string): boolean {
49 const ext = filePath.split(".").pop()?.toLowerCase() ?? "";
50 return IMAGE_EXTENSIONS.has(ext);
51}
52
53export function detectLanguage(filePath: string): string {
54 const filename = filePath.split("/").pop()?.toLowerCase() ?? "";

Callers 1

fileViewerStore.tsFile · 0.85

Calls 2

popMethod · 0.80
hasMethod · 0.45

Tested by

no test coverage detected