Công cụ lập trình
Base64 Encode / Decode
base64-encode-decode
Use Base64 Encode / Decode through the Zavilo SDK. Check input limits, parameters, output and supported modes below.
H · Headless
Quick actions
Input files 0Output files 0
Đầu vào
Accepted input contract for this Tool.
| Kind | data |
|---|---|
| File count | 0 – 0 |
| Accepted MIME types | Không có |
Tham số
Pass these values through request.options.
| Parameter | Type | Bắt buộc | Mặc định | Giá trị / Phạm vi | Mô tả |
|---|---|---|---|---|---|
input |
string | Required | — | — | UTF-8 text or Base64 input. |
action |
enum | Optional | encode |
encode | decode | Encode UTF-8 text or decode Base64. |
Đầu ra
Result contract returned after successful processing.
| Type | data |
|---|---|
| File count | 0 – 0 |
| MIME types | Không có |
| Metadata | action, outputLength |
| ZIP archive | No |
Ví dụ cơ bản
Choose a supported integration mode and copy the generated starter code.
Headless
const result = await client.run("base64-encode-decode", {
options: { input: "value", action: "encode" }
});
console.log(result.files, result.data, result.metadata);
Embedded
await client.mount({ tool: "base64-encode-decode", target: "#zavilo-tool", mode: "embedded" });
This page is generated from the SDK Tool Definition used by the runtime.