Skip to content

TOML

Spec

Tables

Long lines / multiline

Long strings without line breaks:

val = """
This is
a mulitline
string
"""

Validate / lint

Tombi

TOML Formatter / Linter / Language Server

sudo pacman -S tombi

Taplo

Install

sudo pacman -S taplo-bin

Usage

Convert to json:

taplo get -f foo.toml -o json

Format:

cat test.toml | taplo fmt -

Other