WriteFileOptions

data class WriteFileOptions(val encoding: StringOrBuffer? = null, val flag: String? = "w", val mode: Int? = null, val signal: AbortSignal? = null)

Options: fs.writeFile

Describes the options which can be provided to a writeFile operation.

Constructors

Link copied to clipboard
constructor(encoding: StringOrBuffer? = null, flag: String? = "w", mode: Int? = null, signal: AbortSignal? = null)

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard

The encoding to use for the file write operation; optional. If not specified, files are written as raw Buffer values; otherwise, the file is written as a string.

Link copied to clipboard
val flag: String?

The flag to use for the file write operation; defaults to w.

Link copied to clipboard
val mode: Int? = null

The mode to use for the file write operation.

Link copied to clipboard
val signal: AbortSignal? = null

The signal to use for the operation; optional.