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

Function decodeBASE64

src/utils.ts:35–42  ·  view source on GitHub ↗
(str: string)

Source from the content-addressed store, hash-verified

33}
34
35export function decodeBASE64(str: string): string {
36 const binary = atob(str);
37 const bytes = new Uint8Array(binary.length);
38 for (let i = 0; i < binary.length; i++) {
39 bytes[i] = binary.charCodeAt(i);
40 }
41 return new TextDecoder().decode(bytes);
42}
43
44export async function fetchFileBASE64(url: string): Promise<string> {
45 const response = await fetch(url);

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected