@ac-essentials/misc-util
    Preparing search index...

    Type Alias TextFileFormatOptions

    Options for formatting text files when writing.

    type TextFileFormatOptions = {
        charsetEncoding?: string;
        endOfLine?: "\n" | "\r\n" | null;
        finalNewline?: boolean | null;
        trimTrailingWhitespace?: boolean | null;
    }
    Index

    Properties

    charsetEncoding?: string

    The character set encoding of the file.

    Defaults to "utf-8".

    endOfLine?: "\n" | "\r\n" | null

    The line ending style of the file.

    If null, the stringifier default is used.

    Defaults to null.

    finalNewline?: boolean | null

    Whether the file should end with a newline.

    If null, the stringifier default is used.

    Defaults to null.

    trimTrailingWhitespace?: boolean | null

    Whether to trim trailing whitespace when writing the file.

    If null, the stringifier default is used.

    Defaults to null.