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

Function text

packages/ui/devtools/test/DevToolsServer.test.ts:28–28  ·  view source on GitHub ↗
(node: Element | null | undefined)

Source from the content-addressed store, hash-verified

26const token = "tok_live_9f2c"
27
28const text = (node: Element | null | undefined) => (node?.textContent ?? "").replace(/\s+/g, " ").trim()
29const overlay = () =>
30 document.querySelector<HTMLIFrameElement>("iframe[data-effect-ui-devtools]")!
31 .contentDocument!.body

Callers 1

Calls 2

trimMethod · 0.80
replaceMethod · 0.45

Tested by

no test coverage detected