Skip to content

editYaml

editYaml(source, path, value, options?): string

Defined in: packages/format-yaml/src/edit.ts:30

Sets value at path in a YAML string and returns the updated source.

Medium-fidelity: uses yaml.Document mutation then reprints — preserves structure outside the patched section but discards comments near it.

string

PropertyPath

unknown

YamlPrintOptions

string