YAML

Converts between a YAML formatted string and its JavaScript object representation, in either direction.

Inputs

  • payload (object | string) : A JavaScript object or YAML string.

Outputs

  • payload (object | string) :

    • If the input is a YAML string it tries to parse it to a JavaScript object.

    • If the input is a JavaScript object it creates a YAML string.

Last updated