--- name: Write a ReadableStream to a file --- To write a `ReadableStream` to disk, first create a `Response` instance from the stream. This `Response` can then be written to disk using [`Bun.write()`](/docs/api/file-io#writing-files-bun-write). ```ts const stream: ReadableStream = ...; const path = "./file.txt"; const response = new Response(stream); await Bun.write(path, response); ``` --- See [Docs > API > File I/O](/docs/api/file-io#writing-files-bun-write) for complete documentation of `Bun.write()`. /a>
Unnamed repository; edit this file 'description' to name the repository.
aboutsummaryrefslogtreecommitdiff
path: root/bridges (unfollow)
AgeCommit message (Expand)AuthorFilesLines
2025-02-26New bridge for the latest Shadertoy submissions (#4456)Gravatar Tobias Alexander Franke 1-0/+100
2025-02-24Fix data-lot-id not being correctly set so use href instead (#4453)Gravatar André Andersson 1-1/+1
2025-02-14fix(github): semi-repair (#4449)Gravatar Dag 1-12/+15
2025-02-14fix(vk): semi-disable broken bridge (#4448)Gravatar Dag 1-8/+15
2025-02-08fix nn.de description and paywall filter (#4444)Gravatar Christian Schabesberger 1-2/+2
2025-02-05fix CarThrottleBridge (#4442)Gravatar Tostiman 1-3/+3