{"repo":"hougesen/kdlfmt","free":true,"listed":false,"github":"https://github.com/hougesen/kdlfmt","clone":"git clone https://github.com/hougesen/kdlfmt.git","description":"A formatter for kdl documents.","language":"Rust","stars":108,"topics":["code-formatter","formatter","kdl","rust","hacktoberfest"],"license":"MIT","category":"dev-tools","readme_excerpt":"kdlfmt A formatter for kdl documents. kdlfmt is a thin cli wrapper built on-top of the official kdl parser for Rust ( kdl-rs ), so any formatting/parsing issues should be reported there. Specifying KDL version This tool supports both KDL version 1 and version 2. KDL version 2 is NOT 100% backward compatible with version 1, so knowing which version you wish to format using is important. By default this tool tries to format using version 2 first, and then version 1. To specify which version you wish to use supply the --kdl-version argument to the command. Installation Using Cargo kdlfmt can be installed using Cargo, the package manager for Rust (crates.io). Using Homebrew If you're on macOS or Linux, you can install kdlfmt using Homebrew: Using npm/npx You can install kdlfmt using npm: Or run it directly using npx: Precompiled Binaries If you do not have/want Rust or Homebrew installed on your device, you can find precompiled binaries on the release page or run one of the installers below. Linux & MacOS Windows Other package managers A non-complete list of other package managers with support for installing kdlfmt can be found at Repology. Usage Once installed the formatted can be invoked by running kdlfmt format . Or reading from stdin and printing the formatted output to stdout. Validating files are formatted kdlfmt also support validating if files are formatted using the kdlfmt check command. Or reading from stdin. Ignoring files .kdlfmtignore files are used to ignore files/d","default_branch":null,"files":null,"tree":[],"storefront":"/r/hougesen","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/hougesen/kdlfmt/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}