MCPcopy
hub / github.com/wavetermdev/waveterm / base64ToString

Function base64ToString

frontend/util/util.ts:30–39  ·  view source on GitHub ↗
(b64: string)

Source from the content-addressed store, hash-verified

28}
29
30function base64ToString(b64: string): string {
31 if (b64 == null) {
32 return null;
33 }
34 if (b64 == "") {
35 return "";
36 }
37 const stringBytes = base64.toByteArray(b64);
38 return new TextDecoder().decode(stringBytes);
39}
40
41function stringToBase64(input: string): string {
42 const stringBytes = new TextEncoder().encode(input);

Callers 10

fetchWaveFileFunction · 0.90
loadDiffDataFunction · 0.90
handleOsc52CommandFunction · 0.90
constructorMethod · 0.90
loadFileMethod · 0.90
loadAppFileMethod · 0.90
saveAppFileMethod · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected