MCPcopy Create free account
hub / github.com/denoland/std / decodeBase64

Function decodeBase64

encoding/base64.ts:84–89  ·  view source on GitHub ↗
(b64: string)

Source from the content-addressed store, hash-verified

82 * ```
83 */
84export function decodeBase64(b64: string): Uint8Array_ {
85 const output = new TextEncoder().encode(b64) as Uint8Array_;
86 // deno-lint-ignore no-explicit-any
87 return new Uint8Array((output.buffer as any)
88 .transfer(decode(output, 0, 0, rAlphabet, padding)));
89}

Callers 3

base64_test.tsFile · 0.90
parseBinaryFunction · 0.90

Calls 1

decodeFunction · 0.90

Tested by

no test coverage detected