Skip to content
Effect 4.0 is here. One ecosystem. Zero dependencies.

Ini unstable

Parses INI configuration files.

This module contains the decoding surface used by Effect's CLI without pulling in the complete ini package.

1 exports Since v4.0.0 Source

Decoding

parse

unstable
Since v4.0.0

Parses an INI document into a null-prototype record.

Details

Section names separated by dots become nested records, repeated keys ending in [] become arrays, and the scalar values true, false, and null are decoded. Other scalar values remain strings.

Signature

declare function parse(input: string): Record<string, unknown>