--- name: Convert a ReadableStream to an ArrayBuffer --- Bun provides a number of convenience functions for reading the contents of a [`ReadableStream`](https://developer.mozilla.org/en-US/docs/Web/API/ReadableStream) into different formats. ```ts const stream = new ReadableStream(); const buf = await Bun.readableStreamToArrayBuffer(stream); ``` --- See [Docs > API > Utils](/docs/api/utils#bun-readablestreamto) for documentation on Bun's other `ReadableStream` conversion functions. d class='form'>
Unnamed repository; edit this file 'description' to name the repository.
aboutsummaryrefslogtreecommitdiff
path: root/plugin/pkg/up (unfollow)
AgeCommit message (Expand)AuthorFilesLines
2019-08-14Tweak the notes a bit (#3128)Gravatar Miek Gieben 1-0/+3
2019-08-14run gofmt -w -s **/*.go (#3126)Gravatar Miek Gieben 2-3/+3
2019-08-13Update parse.go (#3122)Gravatar AllenZMC 1-1/+1