File SystemBinary Data
Convert a Uint8Array to an ArrayBuffer
A Uint8Array is a typed array , a view over data in an underlying ArrayBuffer . The buffer property returns that ArrayBuffer .
Convert a Uint8Array to a string
Bun implements the Web-standard TextDecoder class for converting binary data types like Uint8Array to strings.
Convert a Uint8Array to a Buffer
The Buffer class extends Uint8Array with additional methods. Use Buffer.from() to create a Buffer instance from a Uint8Array .