Outils développeur
Convertisseur Excel · JSON · CSV
data-converter
Use Excel JSON CSV Converter through the Zavilo SDK. Check input limits, parameters, output and supported modes below.
H · Headless
Accès rapide
Fichiers d’entrée 0–1Fichiers de sortie 1
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 – 1 |
| MIME acceptés | application/vnd.openxmlformats-officedocument.spreadsheetml.sheet, application/vnd.ms-excel, text/csv, application/json, text/plain |
Paramètres
Transmettez ces valeurs via request.options.
| Paramètre | Type | Obligatoire | Par défaut | Valeurs / Plage | Description |
|---|---|---|---|---|---|
operation |
enum | Obligatoire | — | excel-to-json | json-to-excel | json-to-csv | csv-to-json | Conversion to perform. excel-to-json reads a workbook; json-to-excel creates XLSX; json-to-csv creates CSV; csv-to-json parses CSV. |
sheet |
string | Optionnel | — | — | Excel worksheet name for excel-to-json. If omitted, the first worksheet is used. |
headerRow |
integer | Optionnel | 1 |
1 – 1000 | 1-based row containing column headers for Excel or CSV input. |
flatten |
boolean | Optionnel | true |
— | Flatten nested JSON objects into dotted column paths such as user.name before tabular export. |
delimiter |
enum | Optionnel | auto |
auto | comma | semicolon | tab | CSV delimiter. auto detects comma, semicolon or tab from the first non-empty row. |
includeBom |
boolean | Optionnel | true |
— | Prefix generated CSV with UTF-8 BOM for spreadsheet compatibility. |
Sortie
Format du résultat renvoyé après traitement.
| Type | files+data |
|---|---|
| Nombre de fichiers | 1 – 1 |
| MIME de sortie | application/json, text/csv, application/vnd.openxmlformats-officedocument.spreadsheetml.sheet |
| Metadata | rows, columns, sheet, delimiter |
| Archive ZIP | Non pris en charge |
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("data-converter", {
options: { operation: "excel-to-json", headerRow: 1, flatten: true }
});
console.log(result.files, result.data, result.metadata);
Embedded
await client.mount({ tool: "data-converter", target: "#zavilo-tool", mode: "embedded" });
This page is generated from the SDK Tool Definition used by the runtime.