effect-io-ai

Package: effect
Module: SchemaGetter

SchemaGetter.encodeBase64Url

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

Signature

declare const encodeBase64Url: <E extends Uint8Array | string>() => Getter<string, E>

Source

Since v4.0.0