PACKAGE
- import
- @runstamp/sdk
- execution
- local
Choose the job
Name the document task.
Runstamp SDK
Pass an operation and its input to runstamp.run(). Get the result back from the same client.
import { readFileSync } from "node:fs";
import { runstamp } from "@runstamp/sdk";
const [base, candidate] = ["base.docx", "candidate.docx"]
.map((file) => readFileSync(file).toString("base64"));
const result = await runstamp.operations.run("docx.diff", [base, candidate], {
operation: { lossPolicy: "collect" }
});
result // value · losses · receipt
How it works
Name the document task.
Pass the file or structured data to the same interface.
Get the file, extracted data, check result, or a clear error.
Pick the format and behavior in the operation catalog. Call it with the defined input and typed options.
The operation returns its file or value, with changes, diagnostics, and typed status. Your app can continue, review, or retry.
Yes. Install the format package and run it in your app runtime.