MCPcopy Create free account
hub / github.com/Hello-Application-XH/HelloGML / removeBASE64DataHeader

Function removeBASE64DataHeader

src/utils.ts:64–66  ·  view source on GitHub ↗
(value: string)

Source from the content-addressed store, hash-verified

62}
63
64export function removeBASE64DataHeader(value: string): string {
65 return value.replace(/^data:(.+);base64,/, "");
66}
67
68export function buildDataBASE64(type: string, ext: string, buffer: ArrayBuffer): string {
69 const bytes = new Uint8Array(buffer);

Callers 1

uploadFileFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected