本页还没有译文
本页 2 段还没译成한국어,下面显示的是英文原文。Convert a Node.js Readable to JSON
还没翻译译自英文(bun.com)本页 2 段都还没译
To convert a Node.js Readable stream to a JSON object in Bun, create a Response with the stream as the body, then call response.json().
import { Readable } from "stream";
const stream = Readable.from([JSON.stringify({ hello: "world" })]);
const json = await new Response(stream).json();
console.log(json); // { hello: "world" }AI 翻译查看英文原文