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

Function encodeBase64Url

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

Source from the content-addressed store, hash-verified

288 * @since 2.0.0
289 */
290export const encodeBase64Url: (input: Uint8Array | string) => string = (input) =>
291 typeof input === "string" ? base64UrlEncodeUint8Array(encoder.encode(input)) : base64UrlEncodeUint8Array(input)
292
293/**
294 * Decodes a URL-safe base64 string into bytes safely.

Callers

nothing calls this directly

Calls 1

Tested by

no test coverage detected