MCPcopy Index your code
hub / github.com/codeaashu/claude-code / hasBinaryExtension

Function hasBinaryExtension

src/constants/files.ts:117–120  ·  view source on GitHub ↗
(filePath: string)

Source from the content-addressed store, hash-verified

115 * Check if a file path has a binary extension.
116 */
117export function hasBinaryExtension(filePath: string): boolean {
118 const ext = filePath.slice(filePath.lastIndexOf('.')).toLowerCase()
119 return BINARY_EXTENSIONS.has(ext)
120}
121
122/**
123 * Number of bytes to read for binary content detection.

Callers 2

validateInputFunction · 0.85
captureUntrackedFilesFunction · 0.85

Calls 1

hasMethod · 0.45

Tested by

no test coverage detected