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

Function hex

packages/platform/node/test/NodeCrypto.test.ts:10–10  ·  view source on GitHub ↗
(bytes: Uint8Array)

Source from the content-addressed store, hash-verified

8const uuidV7Regex = /^[0-9a-f]{8}-[0-9a-f]{4}-7[0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$/
9
10const hex = (bytes: Uint8Array): string => Array.from(bytes, (byte) => byte.toString(16).padStart(2, "0")).join("")
11
12describe("NodeCrypto", () => {
13 it.effect("generates empty random bytes", () =>

Callers 1

NodeCrypto.test.tsFile · 0.70

Calls 2

joinMethod · 0.80
toStringMethod · 0.65

Tested by

no test coverage detected