From 00e1ea758867940e6ed8c56fc88545ba8255a1aa Mon Sep 17 00:00:00 2001 From: Ninad Ubale Date: Mon, 6 Apr 2026 16:06:58 +0530 Subject: [PATCH 1/3] doc: mention node:stream/consumers in stream overview --- doc/api/stream.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/doc/api/stream.md b/doc/api/stream.md index 65afeaad6306e0..373ed82cddbef7 100644 --- a/doc/api/stream.md +++ b/doc/api/stream.md @@ -16,6 +16,7 @@ are both stream instances. Streams can be readable, writable, or both. All streams are instances of [`EventEmitter`][]. +```markdown To access the `node:stream` module: ```js @@ -24,6 +25,9 @@ const stream = require('node:stream'); The `node:stream` module is useful for creating new types of stream instances. It is usually not necessary to use the `node:stream` module to consume streams. +For common tasks like reading a stream into a string or buffer, the +[`node:stream/consumers`](webstreams.md#utility-consumers) module provides +convenient utility functions. ## Organization of this document From f6cb1ade5a15cb44ea5c3a1a8384c624708cd64c Mon Sep 17 00:00:00 2001 From: Ninad Ubale Date: Mon, 6 Apr 2026 16:12:49 +0530 Subject: [PATCH 2/3] doc: mention node:stream/consumers in stream overview Adds a reference to the node:stream/consumers utility functions in the main stream documentation to improve discoverability. Refs: #62535 --- doc/api/stream.md | 1 - 1 file changed, 1 deletion(-) diff --git a/doc/api/stream.md b/doc/api/stream.md index 373ed82cddbef7..960e65f2ef4882 100644 --- a/doc/api/stream.md +++ b/doc/api/stream.md @@ -30,7 +30,6 @@ For common tasks like reading a stream into a string or buffer, the convenient utility functions. ## Organization of this document - This document contains two primary sections and a third section for notes. The first section explains how to use existing streams within an application. The second section explains how to create new types of streams. From 5e5b5d6220144ca298a509f8132e047696373d14 Mon Sep 17 00:00:00 2001 From: Ninad Ubale Date: Tue, 7 Apr 2026 10:52:40 +0530 Subject: [PATCH 3/3] doc: address reviewer feedback for stream consumers link --- doc/api/stream.md | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/doc/api/stream.md b/doc/api/stream.md index 960e65f2ef4882..96db0663eb83d0 100644 --- a/doc/api/stream.md +++ b/doc/api/stream.md @@ -16,7 +16,7 @@ are both stream instances. Streams can be readable, writable, or both. All streams are instances of [`EventEmitter`][]. -```markdown + To access the `node:stream` module: ```js @@ -25,9 +25,10 @@ const stream = require('node:stream'); The `node:stream` module is useful for creating new types of stream instances. It is usually not necessary to use the `node:stream` module to consume streams. + For common tasks like reading a stream into a string or buffer, the -[`node:stream/consumers`](webstreams.md#utility-consumers) module provides -convenient utility functions. +[`node:stream/consumers`][] module provides convenient utility functions. + ## Organization of this document This document contains two primary sections and a third section for notes. The @@ -5007,6 +5008,7 @@ contain multi-byte characters. [`Writable`]: #class-streamwritable [`fs.createReadStream()`]: fs.md#fscreatereadstreampath-options [`fs.createWriteStream()`]: fs.md#fscreatewritestreampath-options +[`node:stream/consumers`]: webstreams.md#utility-consumers [`net.Socket`]: net.md#class-netsocket [`process.stderr`]: process.md#processstderr [`process.stdin`]: process.md#processstdin