Bun 에서 Node.js Readable 스트림을 문자열로 변환하려면 스트림을 본문으로 하는 새 Response 객체를 생성한 다음 response.text() 를 사용하여 스트림을 문자열로 읽을 수 있습니다.
ts
import { Readable } from "stream";
const stream = Readable.from([Buffer.from("Hello, world!")]);
const text = await new Response(stream).text();
console.log(text); // "Hello, world!"