File SystemBinary Data
Convert a DataView to a string
If a DataView contains ASCII-encoded text, use the TextDecoder class to convert it to a string.
Convert a Uint8Array to a ReadableStream
The naive approach to creating a ReadableStream from a Uint8Array is to use the ReadableStream constructor and enqueue the entire array as a single chunk. For a
Convert a ReadableStream to a string
Bun.readableStreamToText reads the contents of a ReadableStream into a string.