MCPcopy Create free account
hub / github.com/TanStack/query / forwardOutput

Function forwardOutput

examples/lit/pagination/scripts/dev.mjs:8–12  ·  view source on GitHub ↗
(prefix, stream, output)

Source from the content-addressed store, hash-verified

6const cwd = new URL('..', import.meta.url)
7
8function forwardOutput(prefix, stream, output) {
9 stream.on('data', (chunk) => {
10 output.write(`${prefix}${chunk}`)
11 })
12}
13
14function start(name, command, args, extraEnv = {}) {
15 const child = spawn(command, args, {

Callers 1

startFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected