effect-io-ai

Package: effect
Module: SchemaGetter

SchemaGetter.encodeBase64

Encodes a Uint8Array or string to a Base64 string.

Details

The getter is pure and never fails.

Example (Encoding to Base64)

import { SchemaGetter } from "effect"

const encode = SchemaGetter.encodeBase64<Uint8Array>()

See

Signature

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

Source

Since v4.0.0