Skip to main content

CSV Component

Build and parse CSV files to and from JavaScript arrays

Component key: csv

Description

CSV is a delimited text file format that uses a comma to separate values. The CSV component gives you the ability to parse and generate CSV files from JavaScript Arrays. You can also specify a custom delimiter character when building and parsing CSV files.

Actions

Generate (deprecated)

Generates a CSV file from an array of objects | key: generate


Generate CSV From Array

Generates CSV data from an array of objects | key: generateFromObject


Parse

Parse CSV data into an array of rows | key: parse

Output Example Payload

{
"data": {
"data": [],
"errors": [],
"meta": {
"delimiter": ",",
"linebreak": "",
"aborted": false,
"truncated": false,
"cursor": 385
}
}
}