{"library":"yaml-unist-parser","type":"library","category":null,"description":"yaml-unist-parser is a JavaScript library designed to parse YAML strings and produce an Abstract Syntax Tree (AST) that is compatible with the unist specification. This makes it a suitable tool for applications that process YAML content using a unified syntax tree, such as linters, formatters, and compilers within the unist ecosystem. The current stable version is 3.1.0, with a recent major release (v3.0.0) indicating active development, though a precise release cadence isn't published. Key differentiators include its focus on generating a unist-compatible AST, enhanced node positioning within the AST, and improved comment attaching, which are crucial for tools like Prettier that rely on precise AST details for formatting.","language":"javascript","status":"active","version":"3.1.0","tags":["javascript","unist","yaml"],"last_verified":"Wed May 27","install":[{"cmd":"npm install yaml-unist-parser","imports":["import { parse } from 'yaml-unist-parser';","import { YAMLSyntaxError } from 'yaml-unist-parser';","import type { Root, Scalar, Pair } from 'yaml-unist-parser/src/types';"]},{"cmd":"yarn add yaml-unist-parser","imports":[]},{"cmd":"pnpm add yaml-unist-parser","imports":[]}],"homepage":null,"github":"https://github.com/prettier/yaml-unist-parser","docs":null,"changelog":null,"pypi":null,"npm":"https://www.npmjs.com/package/yaml-unist-parser","openapi_spec":null,"status_page":null,"smithery":null,"compatibility":{"summary":{"python_range":"18–22","success_rate":0,"avg_install_s":null,"avg_import_s":null,"wheel_type":null},"url":"https://checklist.day/v1/registry/yaml-unist-parser/compatibility"}}