Skip to content

Commit 5958793

Browse files
committed
mention documentation under web stream api
1 parent ad4f0f2 commit 5958793

File tree

1 file changed

+4
-2
lines changed
  • src/blog/articles/nodejs-stream-consumers-utilities

1 file changed

+4
-2
lines changed

src/blog/articles/nodejs-stream-consumers-utilities/index.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
22
date: 2022-03-11T12:30:00
3-
updatedAt: 2022-03-11T12:30:00
3+
updatedAt: 2022-03-11T21:20:00
44
title: Node.js stream consumer utilities
55
permalink: /blog/node-js-stream-consumer/
66
description: How to easily read all the content of a readable stream using async await
@@ -42,7 +42,9 @@ If you wish there was an easier way, well keep reading, this article is for you!
4242

4343
Since Node.js version 16, there is a new built in stream utility library called `stream/consumers` which offers a bunch of useful utilities to consume the entire content of a `ReadableStream`.
4444

45-
At the time of writing this article, `stream/consumers` does not even appear in the official Node.js documentation, so it's still of a hidden gem. Hopefully this article will help to spread the word a little bit.
45+
~~At the time of writing this article, `stream/consumers` does not even appear in the official Node.js documentation, so it's still of a hidden gem. Hopefully this article will help to spread the word a little bit.~~
46+
47+
**UPDATE**: It turns out that this module is documented under the [Web Streams API section](https://nodejs.org/api/webstreams.html#streamconsumersjsonstream) and in fact these utilities are both compatible with Node.js streams and web streams.
4648

4749
Without further ado, let's see what's inside this module:
4850

0 commit comments

Comments
 (0)