MCPcopy
hub / github.com/wandb/openui / asBase64

Function asBase64

frontend/src/api/openui.ts:102–105  ·  view source on GitHub ↗
(ab: ArrayBuffer | undefined)

Source from the content-addressed store, hash-verified

100 c => c.codePointAt(0) ?? 0
101 )
102const asBase64 = (ab: ArrayBuffer | undefined) =>
103 btoa(String.fromCodePoint(...new Uint8Array(ab ?? [])))
104 .replaceAll('+', '-')
105 .replaceAll('/', '_')
106
107async function getPublicKey(username: string, create = false) {
108 const r = await fetch(

Callers 1

postFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected