Skip to content

printIniDocument

printIniDocument(document, options?): string

Defined in: packages/format-ini/src/print-ini-document.ts:39

Renders an IniDocument back to source.

Byte-exact for a document that came from parseIniDocument and was not modified: the tree keeps the raw text of every line, so comments, spacing and section order survive a round trip. That is the property .editorconfig resolution and in-place editing both depend on.

IniDocument

IniPrintDocumentOptions

string