Bun で Node.js の Readable ストリームを JSON オブジェクトに変換するには、ストリームをボディとして新しい Response オブジェクトを作成し、response.json() を使用してストリームを JSON オブジェクトに読み取ります。
ts
import { Readable } from "stream";
const stream = Readable.from([JSON.stringify({ hello: "world" })]);
const json = await new Response(stream).json();
console.log(json); // { hello: "world" }