Skip to main content
DevTools24

TOML 格式化工具

格式化和验证 TOML 文件。将 TOML 转换为 JSON 以用于 JavaScript 工具。

About TOML

  • • TOML (Tom's Obvious Minimal Language) is a config file format
  • • Used by Cargo (Rust), pip (pyproject.toml), and many other tools
  • • Supports strings, integers, floats, booleans, dates, arrays, and tables
  • • More readable than JSON for configuration files

TOML Format - 技术详情

TOML (Tom's Obvious Minimal Language) is a configuration file format designed to be easy to read. It's used by Cargo (Rust), pyproject.toml (Python), and many other tools.

命令行替代方案

# Validate TOML with Python
python3 -c "import tomllib; print(tomllib.load(open('config.toml', 'rb')))"

# Or with taplo CLI
taplo format config.toml

参考

查看官方规范