Entwickler-Tools
CSV-Toolkit
csv-toolkit
Use CSV Toolkit through the Zavilo SDK. Check input limits, parameters, output and supported modes below.
H · Headless
Schnellzugriff
Eingabedateien 0–50Ausgabedateien 1–100
Eingabe
Zulässige Eingabeformate und Dateianzahl für dieses Tool.
| Eingabetyp | file-or-data |
|---|---|
| Dateianzahl | 0 – 50 |
| Zulässige MIME-Typen | text/csv, text/plain |
Parameter
Diese Werte über request.options übergeben.
| Parameter | Typ | Erforderlich | Standard | Zulässig / Bereich | Beschreibung |
|---|---|---|---|---|---|
operation |
enum | Optional | clean |
clean | merge | split | CSV workflow: clean transforms one CSV, merge combines multiple CSV files by header name, split divides one CSV into multiple files. |
delimiter |
enum | Optional | auto |
auto | comma | semicolon | tab | Input delimiter. auto detects comma, semicolon or tab. |
outputDelimiter |
enum | Optional | comma |
comma | semicolon | tab | Delimiter used for generated CSV files. |
headerRow |
integer | Optional | 1 |
1 – 1000 | 1-based row containing column headers. |
removeDuplicates |
boolean | Optional | false |
— | Remove exact duplicate rows after parsing. |
filterColumn |
string | Optional | — | — | Column used by the contains filter. Omit to disable filtering. |
filterValue |
string | Optional | — | — | Case-insensitive substring required in filterColumn. Omit to disable filtering. |
sortColumn |
string | Optional | — | — | Column used for sorting. Omit to preserve row order. |
sortDirection |
enum | Optional | asc |
asc | desc | Sort direction when sortColumn is provided. |
sortMode |
enum | Optional | auto |
auto | text | number | Comparison mode. auto uses numeric comparison when both values are numeric, otherwise text comparison. |
columns |
string[] | Optional | — | — | Ordered list of columns to keep in Clean mode. Omit to keep every column. |
rowsPerFile |
integer | Optional | 5000 |
1 – 1000000 | Maximum data rows per generated file in Split mode. |
includeBom |
boolean | Optional | true |
— | Prefix generated CSV with UTF-8 BOM. |
Ausgabe
Nach erfolgreicher Verarbeitung zurückgegebenes Ergebnisformat.
| Typ | files+data |
|---|---|
| Dateianzahl | 1 – 100 |
| Ausgabe-MIME | text/csv |
| Metadata | rows, columns, parts, inputFiles |
| ZIP-Archiv | Unterstützt · threshold 2 |
Grundlegende Verwendung
Unterstützten Integrationsmodus wählen und den erzeugten Starter-Code kopieren.
Headless
const result = await client.run("csv-toolkit", {
options: { operation: "clean", delimiter: "auto", outputDelimiter: "comma", headerRow: 1 }
});
console.log(result.files, result.data, result.metadata);
Embedded
await client.mount({ tool: "csv-toolkit", target: "#zavilo-tool", mode: "embedded" });
This page is generated from the SDK Tool Definition used by the runtime.