Interface StringifyOptions

Options for stringify.

interface StringifyOptions {
    lineBreak?: "\n" | "\r\n" | "\r";
    pretty?: boolean;
    replacer?: ReplacerFunction;
}

Properties

lineBreak?: "\n" | "\r\n" | "\r"

Character(s) used to break lines in the config file.

{"\n"}
pretty?: boolean

Use a plain assignment char or pad with spaces.

{false}
replacer?: ReplacerFunction

Provide custom string conversion for the value in a key/value pair. Similar to the replacer function in JSON.stringify.