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

Function toBase64

packages/sql/pg/src/PgAuth.ts:68–68  ·  view source on GitHub ↗
(bytes: Uint8Array)

Source from the content-addressed store, hash-verified

66}
67
68const toBase64 = (bytes: Uint8Array): string => Base64.encode(bytes)
69
70const fromBase64 = (text: string, field: string): Uint8Array => {
71 const decoded = Base64.decode(text)

Callers 2

scramContinueUnsafeFunction · 0.70
scramFinishUnsafeFunction · 0.70

Calls 1

encodeMethod · 0.80

Tested by

no test coverage detected