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

Function isBinaryFile

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

Source from the content-addressed store, hash-verified

18}
19
20export function isBinaryFile(path: string): boolean {
21 return BINARY_EXTENSIONS.includes(extname(path))
22}
23
24export function convertBinaryContentsToBase64(contents: any): string {
25 return `base64::${Buffer.from(contents).toString('base64')}`

Callers 1

readFileHelperFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected