File SystemWrite file
Write a file incrementally
Bun provides an API for incrementally writing to a file. Use it for large files, or when writing to a file over a long period of time.
Copy a file to another location
Use Bun.write() to copy a file to another location on disk. The first argument is a destination , like an absolute path or BunFile instance. The second argument
Write a Response to a file
Use Bun.write() to write a Response to disk. The body of the Response is written to the destination.