Ferramentas de desenvolvedor
Conversor 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
Ações rápidas
Arquivos de entrada 0–1Arquivos de saída 1
Entrada
Formatos de entrada e quantidade de arquivos aceitos por esta Tool.
| Tipo de entrada | file-or-data |
|---|---|
| N.º de arquivos | 0 – 1 |
| MIME aceitos | application/vnd.openxmlformats-officedocument.spreadsheetml.sheet, application/vnd.ms-excel, text/csv, application/json, text/plain |
Parâmetros
Passe estes valores por request.options.
| Parâmetro | Tipo | Obrigatório | Padrão | Valores / Faixa | Descrição |
|---|---|---|---|---|---|
operation |
enum | Obrigatório | — | 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 | Opcional | — | — | Excel worksheet name for excel-to-json. If omitted, the first worksheet is used. |
headerRow |
integer | Opcional | 1 |
1 – 1000 | 1-based row containing column headers for Excel or CSV input. |
flatten |
boolean | Opcional | true |
— | Flatten nested JSON objects into dotted column paths such as user.name before tabular export. |
delimiter |
enum | Opcional | auto |
auto | comma | semicolon | tab | CSV delimiter. auto detects comma, semicolon or tab from the first non-empty row. |
includeBom |
boolean | Opcional | true |
— | Prefix generated CSV with UTF-8 BOM for spreadsheet compatibility. |
Saída
Formato do resultado retornado após o processamento.
| Tipo | files+data |
|---|---|
| N.º de arquivos | 1 – 1 |
| MIME de saída | application/json, text/csv, application/vnd.openxmlformats-officedocument.spreadsheetml.sheet |
| Metadata | rows, columns, sheet, delimiter |
| Arquivo ZIP | Não suportado |
Uso básico
Escolha um modo suportado e copie o código inicial gerado.
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.