A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://github.com/nodejs/node/commit/87bab76df2 below:

add documentation for ReadStream and WriteStream · nodejs/node@87bab76 · GitHub

File tree Expand file treeCollapse file tree 2 files changed

+31

-0

lines changed

Filter options

Expand file treeCollapse file tree 2 files changed

+31

-0

lines changed Original file line number Diff line number Diff line change

@@ -98,6 +98,33 @@ Represents the writable side of a TTY. In normal circumstances,

98 98

`tty.WriteStream` instances created for a Node.js process and there

99 99

should be no reason to create additional instances.

100 100 101 +

### `new tty.ReadStream(fd[, options])`

102 + 103 +

<!-- YAML

104 +

added: v0.5.8

105 +

changes:

106 +

- version: v0.9.4

107 +

description: The `options` argument is supported.

108 +

-->

109 + 110 +

* `fd` {number} A file descriptor associated with a TTY.

111 +

* `options` {Object} Options passed to parent `net.Socket`,

112 +

see `options` of [`net.Socket` constructor][].

113 +

* Returns {tty.ReadStream}

114 + 115 +

Creates a `ReadStream` for `fd` associated with a TTY.

116 + 117 +

### `new tty.WriteStream(fd)`

118 + 119 +

<!-- YAML

120 +

added: v0.5.8

121 +

-->

122 + 123 +

* `fd` {number} A file descriptor associated with a TTY.

124 +

* Returns {tty.WriteStream}

125 + 126 +

Creates a `WriteStream` for `fd` associated with a TTY.

127 + 101 128

### Event: `'resize'`

102 129 103 130

<!-- YAML

@@ -314,6 +341,7 @@ The `tty.isatty()` method returns `true` if the given `fd` is associated with

314 341

a TTY and `false` if it is not, including whenever `fd` is not a non-negative

315 342

integer.

316 343 344 +

[`net.Socket` constructor]: net.md#new-netsocketoptions

317 345

[`process.stderr`]: process.md#processstderr

318 346

[`process.stdin`]: process.md#processstdin

319 347

[`process.stdout`]: process.md#processstdout

Original file line number Diff line number Diff line change

@@ -223,6 +223,9 @@ const customTypesMap = {

223 223 224 224

'Tracing': 'tracing.html#tracing-object',

225 225 226 +

'tty.ReadStream': 'tty.html#class-ttyreadstream',

227 +

'tty.WriteStream': 'tty.html#class-ttywritestream',

228 + 226 229

'URL': 'url.html#the-whatwg-url-api',

227 230

'URLSearchParams': 'url.html#class-urlsearchparams',

228 231

You can’t perform that action at this time.


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4