MCPcopy Create free account
hub / github.com/effect-app/libs / decodeHex

Function decodeHex

repos/effect/packages/effect/src/SchemaGetter.ts:1391–1398  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1389 *
1390 * ```ts import.meta.vitest
1391 * import { Effect, Option, SchemaGetter } from "effect"
1392 *
1393 * const decode = SchemaGetter.decodeBase64Url<string>()
1394 * const result = await Effect.runPromise(decode.run(Option.some("-_8="), {}))
1395 * Option.map(result, Array.from) // => Option.some([251, 255])
1396 * ```
1397 *
1398 * @see {@link decodeBase64UrlString} to decode to `string` instead
1399 * @see {@link encodeBase64Url} for the inverse operation
1400 *
1401 * @category decoding

Callers

nothing calls this directly

Calls 3

someMethod · 0.80
transformOrFailFunction · 0.70
failMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…