Skip to main content
Go to Latest
interface FormattingOptions
import { type FormattingOptions } from "https://deno.land/std@0.221.0/ini/ini_map.ts";

Options for providing formatting marks.

Properties

optional
assignment: string

The character used to assign a value to a key; defaults to '='.

optional
lineBreak: "\n" | "\r\n"

Character(s) used to break lines in the config file; defaults to '\n'. Ignored on parse.

optional
commentChar: "#" | ";" | "//"

Mark to use for setting comments; expects '#', ';', '//', defaults to '#' unless another mark is found.

optional
pretty: boolean

Use a plain assignment char or pad with spaces; defaults to false. Ignored on parse.

optional
deduplicate: boolean

Filter duplicate keys from INI string output; defaults to false to preserve data parity.