MCPcopy Create free account
hub / github.com/dylan-sutton-chavez/edge-python / fromB64

Function fromB64

docs/components/Playground.jsx:10–17  ·  view source on GitHub ↗
(b64)

Source from the content-addressed store, hash-verified

8import { escapeHtml } from './shiki'
9
10function fromB64(b64) {
11 if (!b64) return ''
12 try {
13 return new TextDecoder().decode(Uint8Array.from(atob(b64), (c) => c.charCodeAt(0)))
14 } catch {
15 return ''
16 }
17}
18
19// Terminal control chars: `\r`/`\b`/`\t`/`\f` move the cursor and `\n` breaks the line.
20function applyTerminalControls(text) {

Callers 1

PlaygroundFunction · 0.85

Calls 1

fromMethod · 0.80

Tested by

no test coverage detected