Skip to content

Commit

Permalink
doc: document process.std*.fd
Browse files Browse the repository at this point in the history
  • Loading branch information
HarshithaKP committed Jan 17, 2020
1 parent 9530362 commit bab9baf
Showing 1 changed file with 24 additions and 0 deletions.
24 changes: 24 additions & 0 deletions doc/api/process.md
Original file line number Diff line number Diff line change
Expand Up @@ -2158,6 +2158,14 @@ a [Writable][] stream.
`process.stderr` differs from other Node.js streams in important ways. See
[note on process I/O][] for more information.

### `process.stderr.fd`

* {number}

This property refers to the value of underlying file descriptor
(in POSIX) or handle (an abstract resource reference in Windows) of
`process.stderr`. In `worker_thread`s, this field does not exist.

## `process.stdin`

* {Stream}
Expand Down Expand Up @@ -2191,6 +2199,14 @@ In "old" streams mode the `stdin` stream is paused by default, so one
must call `process.stdin.resume()` to read from it. Note also that calling
`process.stdin.resume()` itself would switch stream to "old" mode.

### `process.stdin.fd`

* {number}

This property refers to the value of underlying file descriptor
(in POSIX) or handle (an abstract resource reference in Windows) of
`process.stdin`. In `worker_thread`s, this field does not exist.

## `process.stdout`

* {Stream}
Expand All @@ -2209,6 +2225,14 @@ process.stdin.pipe(process.stdout);
`process.stdout` differs from other Node.js streams in important ways. See
[note on process I/O][] for more information.

### `process.stdout.fd`

* {number}

This property refers to the value of underlying file descriptor
(in POSIX) or handle (an abstract resource reference in Windows) of
`process.stdout`. In `worker_thread`s, this field does not exist.

### A note on process I/O

`process.stdout` and `process.stderr` differ from other Node.js streams in
Expand Down

0 comments on commit bab9baf

Please sign in to comment.