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

Function encodeBase64Url

packages/effect/src/SchemaGetter.ts:1567–1572  ·  view source on GitHub ↗
(options?: {
  /** Keep the `=` padding. Defaults to `false`. */
  readonly padding?: boolean | undefined
})

Source from the content-addressed store, hash-verified

1565 * @since 4.0.0
1566 */
1567export function encodeBase64Url<E extends Uint8Array | string>(options?: {
1568 /** Keep the `=` padding. Defaults to `false`. */
1569 readonly padding?: boolean | undefined
1570}): Getter<string, E> {
1571 return encodeWithWellFormedString(options?.padding ? Base64Url.encodePadded : Base64Url.encode)
1572}
1573
1574/**
1575 * Encodes a `Uint8Array` or string to a hexadecimal string.

Callers

nothing calls this directly

Calls 1

Tested by

no test coverage detected