Outils développeur
Boîte à outils CSV
csv-toolkit
Use CSV Toolkit through the Zavilo SDK. Check input limits, parameters, output and supported modes below.
H · Headless
Accès rapide
Fichiers d’entrée 0–50Fichiers de sortie 1–100
Entrée
Formats d’entrée et nombre de fichiers acceptés par cette Tool.
| Type d’entrée | file-or-data |
|---|---|
| Nombre de fichiers | 0 – 50 |
| MIME acceptés | text/csv, text/plain |
Paramètres
Transmettez ces valeurs via request.options.
| Paramètre | Type | Obligatoire | Par défaut | Valeurs / Plage | Description |
|---|---|---|---|---|---|
operation |
enum | Optionnel | 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 | Optionnel | auto |
auto | comma | semicolon | tab | Input delimiter. auto detects comma, semicolon or tab. |
outputDelimiter |
enum | Optionnel | comma |
comma | semicolon | tab | Delimiter used for generated CSV files. |
headerRow |
integer | Optionnel | 1 |
1 – 1000 | 1-based row containing column headers. |
removeDuplicates |
boolean | Optionnel | false |
— | Remove exact duplicate rows after parsing. |
filterColumn |
string | Optionnel | — | — | Column used by the contains filter. Omit to disable filtering. |
filterValue |
string | Optionnel | — | — | Case-insensitive substring required in filterColumn. Omit to disable filtering. |
sortColumn |
string | Optionnel | — | — | Column used for sorting. Omit to preserve row order. |
sortDirection |
enum | Optionnel | asc |
asc | desc | Sort direction when sortColumn is provided. |
sortMode |
enum | Optionnel | auto |
auto | text | number | Comparison mode. auto uses numeric comparison when both values are numeric, otherwise text comparison. |
columns |
string[] | Optionnel | — | — | Ordered list of columns to keep in Clean mode. Omit to keep every column. |
rowsPerFile |
integer | Optionnel | 5000 |
1 – 1000000 | Maximum data rows per generated file in Split mode. |
includeBom |
boolean | Optionnel | true |
— | Prefix generated CSV with UTF-8 BOM. |
Sortie
Format du résultat renvoyé après traitement.
| Type | files+data |
|---|---|
| Nombre de fichiers | 1 – 100 |
| MIME de sortie | text/csv |
| Metadata | rows, columns, parts, inputFiles |
| Archive ZIP | Pris en charge · threshold 2 |
Utilisation de base
Choisissez un mode pris en charge et copiez le code de démarrage généré.
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.