Skip to content

Files

Latest commit

 

History

History

taplo

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 

Taplo

Taplo is a TOML validator and formatter. It provides a command-line interface (CLI) for working with TOML files.

Installation

You can install Taplo using either cargo or Yarn or NPM.

Cargo

cargo install taplo-cli --locked

Yarn

yarn global add @taplo/cli

NPM

npm install -g @taplo/cli

Usage

To check your TOML files for formatting issues, use the following command:

npx @taplo/cli fmt --config taplo.toml --check

To format all TOML files in your project, use the following command:

npx @taplo/cli fmt --config taplo.toml

This command will automatically format the TOML files, ensuring consistent and readable formatting.

Configuration

Taplo allows you to customize the formatting rules by adding configuration options. You can find the available options and how to use them here.