Package: effect
Module: SchemaGetter
Encodes a Uint8Array or string to a URL-safe Base64 string.
Details
The getter is pure and never fails.
Example (Encoding to Base64Url)
import { SchemaGetter } from "effect"
const encode = SchemaGetter.encodeBase64Url<Uint8Array>()
See
decodeBase64Url for the inverse operation to Uint8ArraydecodeBase64UrlString for the inverse operation to stringencodeBase64 for the standard Base64 variantSignature
declare const encodeBase64Url: <E extends Uint8Array | string>() => Getter<string, E>
Since v4.0.0