MCPcopy
hub / github.com/codeaashu/claude-code / writeOut

Function writeOut

src/utils/process.ts:17–26  ·  view source on GitHub ↗
(stream: NodeJS.WriteStream, data: string)

Source from the content-addressed store, hash-verified

15}
16
17function writeOut(stream: NodeJS.WriteStream, data: string): void {
18 if (stream.destroyed) {
19 return
20 }
21
22 // Note: we don't handle backpressure (write() returning false).
23 //
24 // We should consider handling the callback to ensure we wait for data to flush.
25 stream.write(data /* callback to handle here */)
26}
27
28export function writeToStdout(data: string): void {
29 writeOut(process.stdout, data)

Callers 2

writeToStdoutFunction · 0.85
writeToStderrFunction · 0.85

Calls 1

writeMethod · 0.45

Tested by

no test coverage detected