MCPcopy Create free account
hub / github.com/AlexErrant/Pentive / fromBase64URL

Function fromBase64URL

shared/src/binary.ts:22–24  ·  view source on GitHub ↗
(base64url: Base64Url)

Source from the content-addressed store, hash-verified

20}
21
22export function fromBase64URL(base64url: Base64Url): Base64 {
23 return base64url.replaceAll('-', '+').replaceAll('_', '/') as Base64
24}
25
26export function arrayToBase64url(bytes: Uint8Array<ArrayBuffer>): Base64Url {
27 return toBase64URL(arrayToBase64(bytes))

Callers 1

base64urlToArrayFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected