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

Function convertBinaryContentsToBase64

packages/create/src/file-helpers.ts:24–26  ·  view source on GitHub ↗
(contents: any)

Source from the content-addressed store, hash-verified

22}
23
24export function convertBinaryContentsToBase64(contents: any): string {
25 return `base64::${Buffer.from(contents).toString('base64')}`
26}
27
28export function isBase64(content: string): boolean {
29 return content.startsWith('base64::')

Callers

nothing calls this directly

Calls 1

toStringMethod · 0.80

Tested by

no test coverage detected