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

Toml unstable

Parses TOML configuration files.

The implementation covers the TOML values and table forms used by Effect's configuration-file CLI primitive while avoiding a generated parser runtime.

1 exports Since v4.0.0 Source

Decoding

parse

unstable
Since v4.0.0

Parses a TOML document into a null-prototype record.

Details

Offset date-times are represented by Date, matching the package this parser replaces. Local dates and times remain strings.

Signature

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