GitHub
github.com › google › yamlfmt
GitHub - google/yamlfmt: An extensible command line tool or library to format yaml files. · GitHub
An extensible command line tool or library to format yaml files. - google/yamlfmt
Starred by 1.7K users
Forked by 64 users
Languages Go
GitHub
lyz-code.github.io › yamlfix
yamlfix
A simple opinionated yaml formatter that keeps your comments!
Reddit
reddit.com › r/commandline › yaml formatter recommendation
r/commandline on Reddit: YAML formatter recommendation
December 3, 2021 -
Been looking for a while and the best I could find is prettier but it doesn't do everything right, for example some things require a
`key: >` but prettier does `key:`. Google not too helpful :(
YAMLlint
yamllint.com
YAMLlint - The YAML Validator
Paste in your YAML and click "Go" - we'll tell you if it's valid or not, and give you a nice clean UTF-8 version of it.
PyPI
pypi.org › project › yamlfmt
yamlfmt
JavaScript is disabled in your browser. Please enable JavaScript to proceed · A required part of this site couldn’t load. This may be due to a browser extension, network issues, or browser settings. Please check your connection, disable any ad blockers, or try using a different browser
Xkyle
xkyle.com › A-Detailed-Comparison-of-YAML-Formatters
A Detailed Comparison of YAML Formatters | xkyle.com
November 29, 2022 - Google yamlfmt produced some of them most opinionated outputs, but is also the most configurable. It has the potential to be the formatter I want, I think it just needs a special kyle formatter instead of the basic one :). Still, the fact that it removes horizontal whitespace seems weird to me (Defaults with retain_line_breaks: false).
JSON Formatter
jsonformatter.org › yaml-formatter › 570a2d
YAML Formatter
Best and Secure Online YAML Formatter works well in Windows, Mac, Linux, Chrome, Firefox, Safari and Edge.
Package Control
packagecontrol.io › packages › Pretty YAML
Pretty YAML - Packages - Package Control
Prettify YAML plugin for Sublime Text 2 & 3 (Based on Pretty JSON) Install this sublime text package via Package Control · Linux: ctrl+alt+y · Windows: ctrl+alt+y · OS X: cmd+ctrl+y · If selection is empty and configuration entry use_entire_file_if_no_selection is true, tries to prettify whole file.
Ubuntu
manpages.ubuntu.com › manpages › bionic › man1 › yamllint.1.html
Ubuntu Manpage: yamllint -
yamllint - A linter for YAML files.
GitHub
github.com › mikefarah › yq
GitHub - mikefarah/yq: yq is a portable command-line YAML, JSON, XML, CSV, TOML, HCL and properties processor · GitHub
Flox can be used to install yq on Linux, MacOS, and Windows through WSL. flox install yq · Using gah · gah install yq · Detailed documentation with many examples · Written in portable go, so you can download a lovely dependency free binary · Uses similar syntax as jq but works with YAML, INI, JSON and XML files · Fully supports multi document yaml files · Supports yaml front matter blocks (e.g. jekyll/assemble) Colorized yaml output · Date/Time manipulation and formatting with TZ ·
Starred by 15.1K users
Forked by 754 users
Languages Go 90.7% | Shell 8.9%
GitHub
github.com › adrienverge › yamllint
GitHub - adrienverge/yamllint: A linter for YAML files. · GitHub
Starred by 3.4K users
Forked by 307 users
Languages Python
Faun
faun.pub › cli-tools-for-validating-and-linting-yaml-files-5627b66849b1
CLI tools for validating and linting YAML files. Ideal for pipelines and CI/CD. | by Pritesh Tailor | Medium | FAUN.dev() 🐾
February 25, 2022 - yq is a great tool for validation as well as auto-configuring the format of your YAML file such as setting the indentation size. It can be installed by popular linux package managers. Press enter or click to view image in full size · yq in action formatting a YAML file to have an indentation of 2 spaces.