@@ -1509,8 +1509,10 @@ Android)
1509
1509
1510
1510
* {Stream}
1511
1511
1512
- The ` process.stderr ` property returns a [ Writable] [ ] stream connected to
1513
- ` stderr ` (fd ` 2 ` ).
1512
+ The ` process.stderr ` property returns a stream connected to
1513
+ ` stderr ` (fd ` 2 ` ). It is a [ ` net.Socket ` ] [ ] (which is a [ Duplex] [ ]
1514
+ stream) unless fd ` 2 ` refers to a file, in which case it is
1515
+ a [ Writable] [ ] stream.
1514
1516
1515
1517
Note: ` process.stderr ` differs from other Node.js streams in important ways,
1516
1518
see [ note on process I/O] [ ] for more information.
@@ -1519,8 +1521,10 @@ see [note on process I/O][] for more information.
1519
1521
1520
1522
* {Stream}
1521
1523
1522
- The ` process.stdin ` property returns a [ Readable] [ ] stream equivalent to or
1523
- associated with ` stdin ` (fd ` 0 ` ).
1524
+ The ` process.stdin ` property returns a stream connected to
1525
+ ` stdin ` (fd ` 0 ` ). It is a [ ` net.Socket ` ] [ ] (which is a [ Duplex] [ ]
1526
+ stream) unless fd ` 0 ` refers to a file, in which case it is
1527
+ a [ Readable] [ ] stream.
1524
1528
1525
1529
For example:
1526
1530
@@ -1539,7 +1543,7 @@ process.stdin.on('end', () => {
1539
1543
});
1540
1544
```
1541
1545
1542
- As a [ Readable ] [ ] stream, ` process.stdin ` can also be used in "old" mode that
1546
+ As a [ Duplex ] [ ] stream, ` process.stdin ` can also be used in "old" mode that
1543
1547
is compatible with scripts written for Node.js prior to v0.10.
1544
1548
For more information see [ Stream compatibility] [ ] .
1545
1549
@@ -1551,8 +1555,10 @@ must call `process.stdin.resume()` to read from it. Note also that calling
1551
1555
1552
1556
* {Stream}
1553
1557
1554
- The ` process.stdout ` property returns a [ Writable] [ ] stream connected to
1555
- ` stdout ` (fd ` 1 ` ).
1558
+ The ` process.stdout ` property returns a stream connected to
1559
+ ` stdout ` (fd ` 1 ` ). It is a [ ` net.Socket ` ] [ ] (which is a [ Duplex] [ ]
1560
+ stream) unless fd ` 1 ` refers to a file, in which case it is
1561
+ a [ Writable] [ ] stream.
1556
1562
1557
1563
For example, to copy process.stdin to process.stdout:
1558
1564
@@ -1793,6 +1799,7 @@ cases:
1793
1799
[ TTY ] : tty.html#tty_tty
1794
1800
[ Writable ] : stream.html#stream_writable_streams
1795
1801
[ Readable ] : stream.html#stream_readable_streams
1802
+ [ Duplex ] : stream.html#stream_duplex_and_transform_streams
1796
1803
[ Child Process ] : child_process.html
1797
1804
[ Cluster ] : cluster.html
1798
1805
[ `process.exitCode` ] : #process_process_exitcode
0 commit comments