Skip to content

parseIni

parseIni(source, options?): UnknownRecord

Defined in: packages/format-ini/src/parse.ts:119

Parses INI text into a plain object.

A utility over parseIniDocument and iniDocumentToValue, not a second implementation of the grammar. Use the document form directly where comments, ordering or spans matter — this projection discards all three, and a repeated section is merged into the one before it.

string

IniParseOptions & IniValueOptions

UnknownRecord