YAML (YAML Ain't Markup Language)
एक मानव-पठनीय डेटा सीरियलाइज़ेशन फॉर्मेट जो कॉन्फ़िगरेशन फ़ाइलों के लिए व्यापक रूप से उपयोग किया जाता है। YAML इंडेंटेशन-आधारित सिंटैक्स प्रदान करता है जो XML/JSON की तुलना में पढ़ने और लिखने में आसान है।
MIME Type
application/x-yaml
प्रकार
टेक्स्ट
संपीड़न
दोषरहित
लाभ
- + Highly readable — minimal syntax noise
- + Supports comments for inline documentation
- + Native in Docker, Kubernetes, Ansible, and CI/CD systems
- + Superset of JSON — any JSON is valid YAML
हानियाँ
- − Indentation-sensitive — whitespace errors cause silent failures
- − Implicit type coercion can cause bugs ('yes' becomes boolean true)
- − More complex specification than JSON with anchors, tags, and directives
.YAML कब उपयोग करें
Kubernetes मैनिफ़ेस्ट, Docker Compose, CI/CD पाइपलाइन (GitHub Actions), Ansible प्लेबुक, और ऐप्लिकेशन कॉन्फ़िगरेशन।
तकनीकी विवरण
YAML इंडेंटेशन-आधारित स्कोपिंग का उपयोग करता है (टैब नहीं, केवल स्पेस)। scalars, sequences (lists), mappings (dicts), anchors/aliases, मल्टी-डॉक्यूमेंट स्ट्रीम, और कस्टम टैग को सपोर्ट करता है। YAML JSON का एक सुपरसेट है (YAML 1.2 से)।
इतिहास
Clark Evans ने 2001 में YAML विकसित किया। शुरू में 'Yet Another Markup Language' नाम दिया गया, बाद में इसे 'YAML Ain't Markup Language' में बदला गया। यह Kubernetes, Docker Compose, Ansible, GitHub Actions और अन्य DevOps टूल्स का मानक कॉन्फ़िग फॉर्मेट बन गया।
.YAML से रूपांतरित करें
.YAML में रूपांतरित करें
संबंधित फ़ॉर्मेट
संबंधित शब्द
Learn More
JSON vs YAML vs TOML: Choosing a Configuration Format
Configuration files are the backbone of modern applications. JSON, YAML, and TOML each offer different trade-offs between readability, complexity, and …
How to Format and Validate JSON Data
Malformed JSON causes silent failures in APIs and configuration files. Learn how to format, validate, and debug JSON documents to …
Base64 Encoding: How It Works and When to Use It
Base64 converts binary data into ASCII text, making it safe for transmission through text-based systems. Learn when Base64 is the …
Best Practices for Working with Unix Timestamps
Unix timestamps provide a language-agnostic way to represent points in time, but they come with pitfalls around time zones, precision, …
Troubleshooting JWT Token Issues
JSON Web Tokens are widely used for authentication but can be frustrating to debug. This guide covers common JWT problems …
Hash Functions Compared: MD5, SHA-1, SHA-256, and Beyond
Hash functions are used for file integrity, password storage, and digital signatures. This comparison covers the most common algorithms, their …