MCPcopy Create free account
hub / github.com/Effect-TS/effect / encodeBase64

Function encodeBase64

packages/effect/src/Encoding.ts:147–148  ·  view source on GitHub ↗
(input)

Source from the content-addressed store, hash-verified

145 * @since 2.0.0
146 */
147export const encodeBase64: (input: Uint8Array | string) => string = (input) =>
148 typeof input === "string" ? base64EncodeUint8Array(encoder.encode(input)) : base64EncodeUint8Array(input)
149
150/**
151 * Decodes a base64 (RFC4648) string into bytes safely.

Callers

nothing calls this directly

Calls 1

base64EncodeUint8ArrayFunction · 0.85

Tested by

no test coverage detected