Cheatsheet for YAML

YAML is a data serialization language commonly used to create configuration files. YAML stands for yet another markup language or YAML ain’t markup language (a recursive acronym) depending on who you ask, emphasizing that YAML is for data rather than d…


This content originally appeared on DEV Community and was authored by Annoh Karlgusta

YAML is a data serialization language commonly used to create configuration files. YAML stands for yet another markup language or YAML ain't markup language (a recursive acronym) depending on who you ask, emphasizing that YAML is for data rather than documents.

Syntax for YAML
Perl, C, XML, HTML, and other programming languages are all represented in YAML. JSON files are valid in YAML because it is a superset of JSON.

Nesting is shown in YAML using Python-style indentation. Because tab characters are not permitted, whitespace is used instead. Braces, square brackets, closing tags, and quotation marks are not included in the standard format. The extension of YAML files is .yml or.yaml.

The creation of configuration files is one of the most prevalent uses for YAML. Even though they can be used interchangeably in most circumstances, it is advised that configuration files be written in YAML rather than JSON because YAML is easier to read and understand. YAML is utilized for Kubernetes resources and deployments in addition to Ansible. One advantage of utilizing YAML is that it can be incorporated to source control systems like GitHub, allowing changes to be recorded and audited.

See you soon.


This content originally appeared on DEV Community and was authored by Annoh Karlgusta


Print Share Comment Cite Upload Translate Updates
APA

Annoh Karlgusta | Sciencx (2022-04-21T12:21:28+00:00) Cheatsheet for YAML. Retrieved from https://www.scien.cx/2022/04/21/cheatsheet-for-yaml/

MLA
" » Cheatsheet for YAML." Annoh Karlgusta | Sciencx - Thursday April 21, 2022, https://www.scien.cx/2022/04/21/cheatsheet-for-yaml/
HARVARD
Annoh Karlgusta | Sciencx Thursday April 21, 2022 » Cheatsheet for YAML., viewed ,<https://www.scien.cx/2022/04/21/cheatsheet-for-yaml/>
VANCOUVER
Annoh Karlgusta | Sciencx - » Cheatsheet for YAML. [Internet]. [Accessed ]. Available from: https://www.scien.cx/2022/04/21/cheatsheet-for-yaml/
CHICAGO
" » Cheatsheet for YAML." Annoh Karlgusta | Sciencx - Accessed . https://www.scien.cx/2022/04/21/cheatsheet-for-yaml/
IEEE
" » Cheatsheet for YAML." Annoh Karlgusta | Sciencx [Online]. Available: https://www.scien.cx/2022/04/21/cheatsheet-for-yaml/. [Accessed: ]
rf:citation
» Cheatsheet for YAML | Annoh Karlgusta | Sciencx | https://www.scien.cx/2022/04/21/cheatsheet-for-yaml/ |

Please log in to upload a file.




There are no updates yet.
Click the Upload button above to add an update.

You must be logged in to translate posts. Please log in or register.