We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 79491e0 commit 2316becCopy full SHA for 2316bec
doc/api/webstreams.md
@@ -1707,6 +1707,7 @@ added: v25.0.0
1707
```mjs
1708
import { bytes } from 'node:stream/consumers';
1709
import { Readable } from 'node:stream';
1710
+import { Buffer } from 'node:buffer';
1711
1712
const dataBuffer = Buffer.from('hello world from consumers!');
1713
@@ -1719,6 +1720,7 @@ console.log(`from readable: ${data.length}`);
1719
1720
```cjs
1721
const { bytes } = require('node:stream/consumers');
1722
const { Readable } = require('node:stream');
1723
+const { Buffer } = require('node:buffer');
1724
1725
1726
0 commit comments