mirror of
https://github.com/nodejs/node.git
synced 2026-10-28 10:15:07 +08:00
doc: add missing buffer in the stream/consumers import example
PR-URL: https://github.com/nodejs/node/pull/41961 Reviewed-By: Tobias Nießen <tniessen@tnie.de> Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com> Reviewed-By: Mohammed Keyvanzadeh <mohammadkeyvanzade94@gmail.com>
This commit is contained in:
1 parent
a987ba16f8
commit
b53f927a52
1 file changed
+2
@@ -1380,6 +1380,7 @@ They are accessed using:
|
||||
import {
|
||||
arrayBuffer,
|
||||
blob,
|
||||
buffer,
|
||||
json,
|
||||
text,
|
||||
} from 'node:stream/consumers';
|
||||
@@ -1389,6 +1390,7 @@ import {
|
||||
const {
|
||||
arrayBuffer,
|
||||
blob,
|
||||
buffer,
|
||||
json,
|
||||
text,
|
||||
} = require('stream/consumers');
|
||||
|
||||
Reference in new issue
Block a user