YAWN YAML

JSON →
library 3.0.0 ·javascript
verified May 27, 2026

YAWN YAML is a JavaScript/TypeScript library designed to parse and manipulate YAML documents while meticulously preserving comments, original formatting, and scalar styles. The current stable version is 3.0.0, which represents a complete rewrite, moving from a custom parsing engine to leveraging the modern `yaml` package's Concrete Syntax Tree (CST) model. This fundamental shift significantly enhances robustness in comment preservation and scalar style retention, making it ideal for configuration file management or scenarios where semantic and stylistic integrity of YAML is paramount. Key differentiators include its ability to treat comments as first-class citizens in the AST, ensuring they are not lost during updates, and a substantially reduced bundle size from approximately 300KB to 32KB since version 3.0.0. While no explicit release cadence is stated, major version increments, like v3, indicate significant API changes and architectural overhauls. It offers new API methods for fine-grained control over comments, such as `getCommentBefore()` and `setCommentAfter()`.

total hits 12
actors 5 distinct systems
last hit 5d ago AhrefsBot
GPTBot
5
Script
1
Search engines
1

top countries 🇺🇸 United States · 🇨🇦 Canada · 🇩🇪 Germany · 🇫🇷 France