MCPcopy Create free account
hub / github.com/boringstack-xyz/boringstack / readStdin

Function readStdin

tools/spec-loop/hooks/gate.ts:185–191  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

183}
184
185async function readStdin(): Promise<string> {
186 const chunks: Buffer[] = [];
187 for await (const chunk of process.stdin) {
188 chunks.push(Buffer.isBuffer(chunk) ? chunk : Buffer.from(chunk));
189 }
190 return Buffer.concat(chunks).toString("utf8");
191}
192
193async function main(): Promise<never> {
194 let payload: unknown;

Callers 1

mainFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected