Skip to main content
The Buffer class provides a built-in .toString() method that converts a Buffer to a string.

You can optionally specify an encoding and byte range.

See Docs > API > Binary Data for complete documentation on manipulating binary data with Bun.