YAML document as string
retain indented arrays if true
YAML document as string with arrays indented as desired.
Format object into a YAML string.
object to serialize
settings for the formatting
Format a key and value into a YAML string.
key to serialize
value to serialize
settings for the formatting
Use the keys in the provided object to update, insert, or delete keys in the provided YAML document.
object of updates
YAML document to update
format settings
updated YAML document as a string
Parse the provides update string as JSON and use the keys in the provided object to update, insert, or delete keys in the provided YAML.
YAML document to update
format settings
updated YAML document as a string
Use the keys in the provided object to update, insert, or delete keys in the provided YAML. The YAML can be multiple documents.
The updating follows two possible strategies depending on the ̀updateAlloption. When
false, the default, if the keys are found in any of the
documents, they are updated in the first document the key exists in. If a key
is not found in any document, it is added to the first document. When
Ì€updateAllis
true`, the updates append on all documents.
object of updates
format settings
updated YAML document as a string
Update, insert, or delete the value of a key in currentYml
, a
string containing valid YAML. It does its best to retain the same
formatting, but empty lines and trailing whitespace may disappear
if adjacent lines are edited and comments that are parsed as part
of a value that is deleted will be deleted.
the key whose value should be replaced
the value to set the key to, set to null
or undefined
to remove the key
settings for the formatting
updated YAML document as a string
Generated using TypeDoc
Remove superfluous indentation from array if
indentArray
isfalse
.