OptionalindentIndent size for pretty-printing (default: 2).
OptionalinputInput format (default: "auto").
OptionalmodeOutput mode (default: "optimized").
OptionaloutputOutput format (default: "json").
OptionalpatchA patch document (PLAN-179) — per-bit patches by selector, removes, inserts and moves — or the every-bit shorthand: a bare array of entries applied to every bit. Either form may be given as a JSON string.
OptionalpostPer-bit post-hook, run on the calling thread after each bit is rendered.
OptionalprePer-bit pre-hook, run on the calling thread. Returns patches (applied
after the static patch), an output-format override, or drop. Providing
a preHook or postHook switches transform to the per-bit path; with
neither, the whole document is transformed in a single pass.
OptionalprettyPrettify the emitted JSON (default: false) — for bitmark output, the
embedded JSON bodies of json-format bits.
OptionalspacesSpaces around tag values in bitmark output, 0..=10 (default: 1).
OptionalworkersWorker-thread count for transformParallel (Node only; default 4).
Ignored by the synchronous transform.
Options for the transform function.