Home > @microsoft/node-core-library > IFileSystemWriteFileOptions

IFileSystemWriteFileOptions interface

The options for FileSystem.writeFile()

Signature:

export interface IFileSystemWriteFileOptions 

Properties

Property Type Description
convertLineEndings NewlineKind If specified, will normalize line endings to the specified style of newline. Defaults to NewlineKind.None.
encoding Encoding If specified, will change the encoding of the file that will be written. Defaults to "utf8".
ensureFolderExists boolean If true, will ensure the folder is created before writing the file. Defaults to false.