From dc896736b770f04658ecc2d3388b3971eac7d75a Mon Sep 17 00:00:00 2001 From: Anna Henningsen Date: Wed, 1 Oct 2025 14:30:22 +0200 Subject: [PATCH] console: allow per-stream `inspectOptions` option We (correctly) allow different streams to be specified for `stdout` and `stderr`, so we should also allow different inspect options for these streams. --- doc/api/console.md | 8 +++++-- lib/internal/console/constructor.js | 23 ++++++++++++++----- .../test-console-tty-colors-per-stream.js | 23 +++++++++++++++++++ 3 files changed, 46 insertions(+), 8 deletions(-) create mode 100644 test/parallel/test-console-tty-colors-per-stream.js diff --git a/doc/api/console.md b/doc/api/console.md index 1c966d094d1472..7658494927bf71 100644 --- a/doc/api/console.md +++ b/doc/api/console.md @@ -102,6 +102,9 @@ const { Console } = console;