Optional
options: DocumentOptions & SchemaOptions & ParseOptions & CreateNodeOptions & ToStringOptionsWill always include \n
as the last character, as is expected of YAML documents.
Optional
replacer: null | ReplacerOptional
options: string | number | DocumentOptions & SchemaOptions & ParseOptions & CreateNodeOptions & ToStringOptions
Stringify a value as a YAML document.