MCPcopy Index your code
hub / github.com/nodejs/node / readStdin

Function readStdin

lib/internal/process/execution.js:228–239  ·  view source on GitHub ↗
(callback)

Source from the content-addressed store, hash-verified

226}
227
228function readStdin(callback) {
229 process.stdin.setEncoding('utf8');
230
231 let code = '';
232 process.stdin.on('data', (d) => {
233 code += d;
234 });
235
236 process.stdin.on('end', () => {
237 callback(code);
238 });
239}
240
241/**
242 * Adds the TS message to the error stack.

Callers 2

check_syntax.jsFile · 0.85
eval_stdin.jsFile · 0.85

Calls 3

callbackFunction · 0.50
setEncodingMethod · 0.45
onMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…