kdlfmt

JSON →
library 0.1.7 ·javascript
verified Jun 4, 2026

kdlfmt is a code formatter for KDL documents, wrapping the official kdl-rs Rust parser. Current stable version is 0.1.7, released periodically on npm, Cargo, Homebrew, and via precompiled binaries. Supports both KDL v1 and v2 specifications; by default tries v2 then v1. Key differentiators: thin CLI wrapper with lint-style check subcommand, config file support, and stdin/stdout piping. Unlike general document formatters, kdlfmt is purpose-built for KDL and leverages the canonical Rust parser for correctness.