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

Function consoleWith

repos/effect/packages/effect/src/Console.ts:97–98  ·  view source on GitHub ↗
(f: (console: Console) => Effect.Effect<A, E, R>)

Source from the content-addressed store, hash-verified

95 * log: (...args: ReadonlyArray<unknown>) => messages.push(...args),
96 * error: (...args: ReadonlyArray<unknown>) => messages.push(...args)
97 * })
98 * const program = Console.consoleWith((console) =>
99 * Effect.sync(() => {
100 * console.log("Hello, world!")
101 * console.error("This is an error message")

Callers 15

assertFunction · 0.85
Console.tsFile · 0.85
countFunction · 0.85
countResetFunction · 0.85
debugFunction · 0.85
dirFunction · 0.85
dirxmlFunction · 0.85
errorFunction · 0.85
groupFunction · 0.85
infoFunction · 0.85
logFunction · 0.85
tableFunction · 0.85

Calls 2

getRefMethod · 0.80
fFunction · 0.50

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…