PchunkSize
Bun

property

fs.promises.WriterOptions.chunkSize

chunkSize?: number

Maximum chunk size in bytes for synchronous write operations. Writes larger than this threshold fall back to async I/O. Set this to match the reader's chunkSize for optimal pipeTo() performance.