MCPcopy Create free account
hub / github.com/TanStack/cli / isBinaryFile

Function isBinaryFile

packages/create/src/edge-file-helpers.ts:6–8  ·  view source on GitHub ↗
(path: string)

Source from the content-addressed store, hash-verified

4const BINARY_EXTENSIONS = ['.png', '.jpg', '.jpeg', '.gif', '.svg', '.ico']
5
6export function isBinaryFile(path: string): boolean {
7 return BINARY_EXTENSIONS.includes(extnamePath(path))
8}
9
10export function isBase64(content: string): boolean {
11 return content.startsWith('base64::')

Callers

nothing calls this directly

Calls 1

extnamePathFunction · 0.85

Tested by

no test coverage detected