MCPcopy
hub / github.com/colinhacks/zod / toB64Url

Function toB64Url

packages/zod/src/v4/classic/tests/hash.test.ts:10–10  ·  view source on GitHub ↗
(b64: string)

Source from the content-addressed store, hash-verified

8 // type Enc = "hex" | "base64" | "base64url";
9
10 const toB64Url = (b64: string) => b64.replace(/\+/g, "-").replace(/\//g, "_").replace(/=+$/g, "");
11
12 const makeDigests = (alg: Alg, input: string) => {
13 const buf = createHash(alg).update(input).digest();

Callers 1

makeDigestsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected