This n8n node allows you to convert data to and from YAML format. It supports operations like extracting data from YAML, converting to YAML, and setting values within YAML structures. It also includes utilities for handling binary data and different encoding options.
Add the package to your workspace:
yarn add @rxap/n8n-nodes-yaml
Install peer dependencies:
yarn add n8n-workflow
Execute the init generator:
yarn nx g @rxap/n8n-nodes-yaml:init
Transform YAML data into output items
Property | Default | Description |
---|---|---|
Input Binary Field | data |
The name of the input field containing the file data to be processed |
Destination Output Field | data |
The name of the output field that will contain the extracted data |
Transform input data into YAML file
Property | Default | Description |
---|---|---|
Mode | once | The operation mode |
Put Output File in Field | data |
The name of the output binary field to put the file in |
- Once: All Items to One File
- each: Each Item to Separate File
Converts data from JSON to YAML
Property | Default | Description |
---|---|---|
Input Yaml Field | data |
Name of the property which contains the YAML data to convert |
Converts data from YAML to JSON
Property | Default | Description |
---|---|---|
Input Json Field | data |
Name of the property which contains the JSON data |
Destination Output Field | data |
Name of the property to which to contains the converted YAML data |
Converts data from YAML to JSON
Property | Default | Description |
---|---|---|
Input Yaml Field | data |
Name of the property which contains the YAML data to where the value should be set |
Fields to Set | {} |
Edit existing fields or add new ones to modify the output data |
Input Type | auto |
The type of the input data |
- auto: Automatically detect the input type
- string: The input is a string
- binary: The input is a binary file
Initialize the package in the workspace
nx g @rxap/n8n-nodes-yaml:init