实用工具消费者
¥Utility Consumers
实用程序消费者函数提供了用于消费流的通用选项。
¥The utility consumer functions provide common options for consuming streams.
使用以下方式访问它们:
¥They are accessed using:
import {
arrayBuffer,
blob,
buffer,
json,
text,
} from 'node:stream/consumers';
const {
arrayBuffer,
blob,
buffer,
json,
text,
} = require('node:stream/consumers');