MCPcopy Create free account
hub / github.com/arctic-cli/interface / base64Decode

Function base64Decode

packages/util/src/encode.ts:5–7  ·  view source on GitHub ↗
(value: string)

Source from the content-addressed store, hash-verified

3}
4
5export function base64Decode(value: string) {
6 return atob(value.replace(/-/g, "+").replace(/_/g, "/"))
7}
8
9export async function hash(content: string, algorithm = "SHA-256"): Promise<string> {
10 const encoder = new TextEncoder()

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected