# fs.writeFile.options

options for writeFile and writeFileSync methods

Availability
8.3.0
8.3.0
9.2.0
Extends
Object

NOTE

This is an abstract type. Any object of this structure can be used where this type is used.

# Properties

# encoding

Availability
8.3.0
8.3.0
9.2.0
encoding :String

character encoding

Default: utf8


# flag

Availability
8.3.0
8.3.0
9.2.0
flag :String

See support of file system flags.

Default: w


# mode

Availability
8.3.0
8.3.0
9.2.0
mode :Number

file permissions/mode

Default: 0o666