@@ -1496,8 +1496,10 @@ Android)
1496
1496
1497
1497
* {Stream}
1498
1498
1499
- The ` process.stderr ` property returns a [ Writable] [ ] stream connected to
1500
- ` stderr ` (fd ` 2 ` ).
1499
+ The ` process.stderr ` property returns a stream connected to
1500
+ ` stderr ` (fd ` 2 ` ). It is a [ ` net.Socket ` ] [ ] (which is a [ Duplex] [ ]
1501
+ stream) unless fd ` 2 ` refers to a file, in which case it is
1502
+ a [ Writable] [ ] stream.
1501
1503
1502
1504
Note: ` process.stderr ` differs from other Node.js streams in important ways,
1503
1505
see [ note on process I/O] [ ] for more information.
@@ -1506,8 +1508,10 @@ see [note on process I/O][] for more information.
1506
1508
1507
1509
* {Stream}
1508
1510
1509
- The ` process.stdin ` property returns a [ Readable] [ ] stream equivalent to or
1510
- associated with ` stdin ` (fd ` 0 ` ).
1511
+ The ` process.stdin ` property returns a stream connected to
1512
+ ` stdin ` (fd ` 0 ` ). It is a [ ` net.Socket ` ] [ ] (which is a [ Duplex] [ ]
1513
+ stream) unless fd ` 0 ` refers to a file, in which case it is
1514
+ a [ Readable] [ ] stream.
1511
1515
1512
1516
For example:
1513
1517
@@ -1526,7 +1530,7 @@ process.stdin.on('end', () => {
1526
1530
});
1527
1531
```
1528
1532
1529
- As a [ Readable ] [ ] stream, ` process.stdin ` can also be used in "old" mode that
1533
+ As a [ Duplex ] [ ] stream, ` process.stdin ` can also be used in "old" mode that
1530
1534
is compatible with scripts written for Node.js prior to v0.10.
1531
1535
For more information see [ Stream compatibility] [ ] .
1532
1536
@@ -1538,8 +1542,10 @@ must call `process.stdin.resume()` to read from it. Note also that calling
1538
1542
1539
1543
* {Stream}
1540
1544
1541
- The ` process.stdout ` property returns a [ Writable] [ ] stream connected to
1542
- ` stdout ` (fd ` 1 ` ).
1545
+ The ` process.stdout ` property returns a stream connected to
1546
+ ` stdout ` (fd ` 1 ` ). It is a [ ` net.Socket ` ] [ ] (which is a [ Duplex] [ ]
1547
+ stream) unless fd ` 1 ` refers to a file, in which case it is
1548
+ a [ Writable] [ ] stream.
1543
1549
1544
1550
For example, to copy process.stdin to process.stdout:
1545
1551
@@ -1780,6 +1786,7 @@ cases:
1780
1786
[ TTY ] : tty.html#tty_tty
1781
1787
[ Writable ] : stream.html#stream_writable_streams
1782
1788
[ Readable ] : stream.html#stream_readable_streams
1789
+ [ Duplex ] : stream.html#stream_duplex_and_transform_streams
1783
1790
[ Child Process ] : child_process.html
1784
1791
[ Cluster ] : cluster.html
1785
1792
[ `process.exitCode` ] : #process_process_exitcode
0 commit comments