Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
Module

std/ini/mod.ts>FormattingOptions

The Deno Standard Library
Go to Latest
interface FormattingOptions
import { type FormattingOptions } from "https://deno.land/std@0.223.0/ini/mod.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.