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

Function getBinaryFile

packages/create/src/file-helpers.ts:32–38  ·  view source on GitHub ↗
(content: string)

Source from the content-addressed store, hash-verified

30}
31
32export function getBinaryFile(content: string): string | null {
33 if (content.startsWith('base64::')) {
34 const binaryContent = Buffer.from(content.replace('base64::', ''), 'base64')
35 return binaryContent as unknown as string
36 }
37 return null
38}
39
40/**
41 * Returns a path without leading ./ or / prefix.

Callers 1

createDefaultEnvironmentFunction · 0.85

Calls 1

replaceMethod · 0.65

Tested by

no test coverage detected