File SystemWrite file
Write a file to stdout
Bun exposes stdout as a BunFile with the Bun.stdout property. Pass it as the destination to Bun.write() .
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
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