We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2cfd3f4 commit 5b73486Copy full SHA for 5b73486
1 file changed
doc/api/child_process.md
@@ -1403,16 +1403,9 @@ const { spawn } = require('child_process');
1403
1404
const subprocess = spawn('ls');
1405
1406
-const ioStdout = subprocess.stdio[1];
1407
-
1408
-// This is the same of listening to ioStdout data event
1409
subprocess.stdout.on('data', (data) => {
1410
console.log(`Received chunk ${data}`);
1411
});
1412
1413
-ioStdout.on('data', (data) => {
1414
- console.log(`Received chunk ${data}`);
1415
-});
1416
```
1417
1418
### subprocess.unref()
0 commit comments