MCPcopy Index your code
hub / github.com/wavetermdev/waveterm / stringToBase64

Function stringToBase64

frontend/util/util.ts:41–44  ·  view source on GitHub ↗
(input: string)

Source from the content-addressed store, hash-verified

39}
40
41function stringToBase64(input: string): string {
42 const stringBytes = new TextEncoder().encode(input);
43 return base64.fromByteArray(stringBytes);
44}
45
46function arrayToBase64(input: Uint8Array): string {
47 return base64.fromByteArray(input);

Callers 6

TermStickerFunction · 0.90
sendDataToControllerMethod · 0.90
handleFileSaveMethod · 0.90
saveFileMethod · 0.90
saveAppFileMethod · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected