Pretty YAML – semi-tolerant and configurable YAML formatter

Pretty YAML is a configurable YAML formatter designed to produce consistent document layouts while accommodating a wide range of formatting preferences. It integrates with dprint, allowing YAML formatting to form part of a unified workflow alongside other supported document and programming languages.

The underlying YAML parser is also available independently of the formatter, enabling application developers to incorporate YAML parsing into their own software.

This is free and open source software.

Key Features

  • Format YAML documents according to configurable style preferences.
  • Integrate with dprint through a WebAssembly plugin.
  • Provide separate formatter and parser libraries for application integration.
  • Configure maximum print width, indentation and line-ending style.
  • Specify single or double quotation mark preferences.
  • Control whitespace around braces, brackets and sequence indicators.
  • Configure trailing commas in flow-style collections.
  • Control whether suitable collections are formatted on a single line.
  • Customize comment formatting and prose wrapping.
  • Trim trailing whitespace and unnecessary numeric zeroes.
  • Use ignore directives to exclude selected content from formatting.

Website: github.com/g-plane/pretty_yaml
Support:
Developer: Pig Fang
License: MIT License

Pretty YAML is written in Rust. Learn Rust with our recommended free books and free tutorials.


Related Software

YAML Code Formatters
yamlfmtExtensible command-line tool and Go library for formatting YAML files
libfyamlFully-featured YAML 1.2 and JSON parser/writer
yamlfixOpinionated YAML formatter
pretty-yamlHuman-readable YAML-serialized data
yamLittle formatter for YAML
Pretty YAMLSemi-tolerant and configurable YAML formatter

Read our verdict in the software roundup.


Best Free and Open Source Software LinuxLinks helps you discover the best free and open source software for Linux. Explore our extensive collection of recommended applications, including alternatives to popular proprietary software.

We also publish software reviews, Linux tutorials, hardware reviews, free programming books and articles covering the wider open source community. Browse our Linux resources to discover more.

Know a useful free and open source Linux application we haven't covered? Suggest a program for inclusion.

Has your software been featured on LinuxLinks? Display one of our Featured on LinuxLinks badges on your website or GitHub README.
Subscribe

Please read our Comment Policy before commenting.

Notify of
guest
0 Comments
Oldest
Newest Most Voted