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

Function encodeHex

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

Source from the content-addressed store, hash-verified

403 * @since 2.0.0
404 */
405export const encodeHex: (input: Uint8Array | string) => string = (input) =>
406 typeof input === "string" ? hexEncodeUint8Array(encoder.encode(input)) : hexEncodeUint8Array(input)
407
408/**
409 * Decodes a hexadecimal string into bytes safely.

Callers

nothing calls this directly

Calls 1

hexEncodeUint8ArrayFunction · 0.85

Tested by

no test coverage detected