writeFileSync
Call Signature
Section titled “Call Signature”writeFileSync(
this,path,data,options?):void
Defined in: src/node/sync.ts:177
Synchronously writes data to a file, replacing the file if it already exists.
The encoding option is ignored if data is a buffer.
Parameters
Section titled “Parameters”unknown
PathOrFileDescriptor
FileContents
options?
Section titled “options?”WriteFileOptions
Returns
Section titled “Returns”void
Option
Section titled “Option”encoding Defaults to 'utf8'.
Option
Section titled “Option”mode Defaults to 0644.
Option
Section titled “Option”flag Defaults to 'w'.
Call Signature
Section titled “Call Signature”writeFileSync(
this,path,data,encoding?):void
Defined in: src/node/sync.ts:178
Synchronously writes data to a file, replacing the file if it already exists.
The encoding option is ignored if data is a buffer.
Parameters
Section titled “Parameters”unknown
PathOrFileDescriptor
FileContents
encoding?
Section titled “encoding?”BufferEncoding
Returns
Section titled “Returns”void
Option
Section titled “Option”encoding Defaults to 'utf8'.
Option
Section titled “Option”mode Defaults to 0644.
Option
Section titled “Option”flag Defaults to 'w'.