Formatters
What is Taplo? An introduction to tamasfe's TOML toolkit
Taplo is a versatile, feature-rich TOML toolkit. It offers validation, formatting and a language server for TOML documents. You can use it as a Visual Studio Code extension, a command-line tool or a library.
- Tool
- Taplo
- Made by
- tamasfe
- Official site
- taplo.tamasfe.dev
- Category
- Formatters
Who makes Taplo
Taplo is made by tamasfe. The official website is linked below this article, and it is the place to go for the project's own documentation and downloads.
Official website: taplo.tamasfe.dev
What Taplo is for
Taplo is for working with TOML, the configuration file format. It covers three jobs: checking that a TOML document is valid, formatting it consistently, and providing editor intelligence through a language server.
Because the toolkit supports TOML 1.0.0, it targets that version of the specification when it parses and processes your files.
Who Taplo is for
The vendor does not state a specific audience. In practice, Taplo suits anyone who reads or writes TOML files and wants them validated and formatted by a tool rather than by hand.
The three ways of using it point to different users. The Visual Studio Code extension fits people who edit TOML in that editor. The command-line tool fits people who want to run checks and formatting from a terminal. The library fits developers who want to build TOML handling into their own software.
Notable capabilities
Taplo combines validation, formatting and language-server features in one toolkit, and it ships in several forms so you can pick the one that matches your workflow.
- Multiple distribution forms: Taplo is available as a Visual Studio Code extension, a command-line tool and a library, so the same toolkit works in an editor, in a terminal or inside other software.
- TOML 1.0.0 support: the toolkit supports TOML 1.0.0, the version of the format it works with.
- Syntactic validation: Taplo can check TOML documents for syntactic correctness.
- Schema validation: it can also validate TOML documents against JSON schemas, which lets you check the structure and contents of a file and not just its syntax.
- Customizable formatter: the formatter has fine-grained options, so you can adjust how your TOML files are laid out.
- Embeddable language server: Taplo provides a language server with features based on JSON schemas, and it can be embedded in other tools.
- Cross-platform availability: it is available wherever Rust compiles.
How Taplo fits formatters
In the formatters category, Taplo is a formatter specialized for one file format. Its formatter is customizable with fine-grained options, so the output can be tuned to a team's conventions for TOML files.
Linthelm covers linters, static analysis and code quality tools, and formatting is one part of that picture. Taplo extends beyond formatting into validation. It checks TOML syntax and can check documents against JSON schemas, which is a form of static checking applied to configuration files. The language server brings these checks and schema-based features into an editor, so feedback can arrive while you write rather than after.
Frequently asked questions
What is Taplo used for?
Taplo is used to validate, format and get language-server support for TOML documents. It is a versatile, feature-rich TOML toolkit.
Who develops Taplo?
Taplo is developed by tamasfe. The official website is https://taplo.tamasfe.dev.
Does Taplo support TOML 1.0.0?
Yes. Taplo supports TOML 1.0.0.
Can Taplo validate TOML against a JSON schema?
Yes. Taplo validates TOML documents syntactically or against JSON schemas. Its language server also provides features based on JSON schemas.
How can I use Taplo?
Taplo is available as a Visual Studio Code extension, a command-line tool and a library. It is cross-platform and available wherever Rust compiles.
Linthelm is independent and is not affiliated with tamasfe. Product names belong to their owners. Features change; confirm details on the official website.