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

Function formatValue

packages/effect/src/Logger.ts:411–411  ·  view source on GitHub ↗
(value: string)

Source from the content-addressed store, hash-verified

409 const formatUnknown = (value: unknown): string =>
410 typeof value === "string" ? value : Formatter.format(value, { space })
411 const formatValue = (value: string): string => value.match(textOnly) ? value : quoteValue(value)
412 const format = (label: string, value: string): string => `${effect.formatLabel(label)}=${formatValue(value)}`
413 const append = (label: string, value: string): string => " " + format(label, value)
414

Callers 2

toStringFunction · 0.70
formatFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected