Skip to content

createWriteStream

createWriteStream(this, path, options?): WriteStream

Defined in: src/node/async.ts:718

Opens a file in write mode and creates a Node.js-like WriteStream.

unknown

PathLike

The path to the file to be opened.

BufferEncoding | WriteStreamOptions

Options for the WriteStream and file opening (e.g., encoding, highWaterMark, mode).

WriteStream

A WriteStream object for writing to the file.