diff options
Diffstat (limited to 'doc')
-rw-r--r-- | doc/api/console.md | 8 | ||||
-rw-r--r-- | doc/api/errors.md | 6 |
2 files changed, 13 insertions, 1 deletions
diff --git a/doc/api/console.md b/doc/api/console.md index 42968d2eb9..cd229c0a0f 100644 --- a/doc/api/console.md +++ b/doc/api/console.md @@ -88,6 +88,9 @@ changes: pr-url: https://github.com/nodejs/node/pull/19372 description: The `Console` constructor now supports an `options` argument, and the `colorMode` option was introduced. + - version: REPLACEME + pr-url: https://github.com/nodejs/node/pull/24978 + description: The `inspectOptions` option is introduced. --> * `options` {Object} @@ -98,8 +101,11 @@ changes: * `colorMode` {boolean|string} Set color support for this `Console` instance. Setting to `true` enables coloring while inspecting values, setting to `'auto'` will make color support depend on the value of the `isTTY` property - and the value returned by `getColorDepth()` on the respective stream. + and the value returned by `getColorDepth()` on the respective stream. This + option can not be used, if `inspectOptions.colors` is set as well. **Default:** `'auto'`. + * `inspectOptions` {Object} Specifies options that are passed along to + [`util.inspect()`][]. Creates a new `Console` with one or two writable stream instances. `stdout` is a writable stream to print log or info output. `stderr` is used for warning or diff --git a/doc/api/errors.md b/doc/api/errors.md index f0c118fd59..a2ae4d32be 100644 --- a/doc/api/errors.md +++ b/doc/api/errors.md @@ -1126,6 +1126,12 @@ is set for the `Http2Stream`. `http2.connect()` was passed a URL that uses any protocol other than `http:` or `https:`. +<a id="ERR_INCOMPATIBLE_OPTION_PAIR"></a> +### ERR_INCOMPATIBLE_OPTION_PAIR + +An option pair is incompatible with each other and can not be used at the same +time. + <a id="ERR_INSPECTOR_ALREADY_CONNECTED"></a> ### ERR_INSPECTOR_ALREADY_CONNECTED |