Skip to content

Toml

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 Added in v4.0.0 Source

Decoding

parse

Added in v4.0.0 Source

Parses a TOML document into a null-prototype record.

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>;