Mwrite
Bun

method

fs.Utf8Stream.write

data: string | Buffer<ArrayBufferLike>
): boolean;

When the options.contentMode is set to 'utf8' when the stream is created, the data argument must be a string. If the contentMode is set to 'buffer', the data argument must be a Buffer.

@param data

The data to write.