File SystemWrite file
Write a string to a file
Use Bun.write() to write a string to disk at an absolute path . The first argument is a destination ; the second is the data to write.
Append content to a file
Bun implements the node:fs module, which includes the fs.appendFile and fs.appendFileSync functions for appending content to files.
Write a Blob to a file
Use Bun.write() to write a Blob to disk. The first argument is a destination , like an absolute path or BunFile instance. The second argument is the data to