> ## Documentation Index
> Fetch the complete documentation index at: https://bun.ll1025.cn/llms.txt
> Use this file to discover all available pages before exploring further.

# 将 Node.js Readable 转换为 Uint8Array

要在 Bun 中将 Node.js `Readable` 流转换为 `Uint8Array`，请创建一个以该流为正文的 `Response`，然后调用 `bytes()`。

```ts theme={null}
import { Readable } from "stream";
const stream = Readable.from(["Hello, ", "world!"]);
const buf = await new Response(stream).bytes();
```
