@gmb/bitmark-parser - v7.2.0
    Preparing search index...

    Interface CanonicalizeOptions

    Options for the canonicalize function (the single same-format re-emit surface; mode covers what the removed optimize/fullize did).

    interface CanonicalizeOptions {
        indent?: number;
        inputFormat?: InputFormat;
        mode?: OutputMode;
        pretty?: boolean;
        spacesAroundValues?: number;
    }
    Index
    indent?: number

    Indent size for pretty-printing (default: 2).

    inputFormat?: InputFormat

    Input format (default: "auto"). The output is re-emitted in this same format — e.g. "html" in, html out. "auto" sniffs bitmark vs JSON.

    mode?: OutputMode

    Output mode (default: "optimized"; "full" emits all keys).

    pretty?: boolean

    Prettify the JSON being emitted (default: false) — the whole document for JSON input, the embedded JSON bodies of json-format bits for bitmark input.

    spacesAroundValues?: number

    Spaces around tag values in bitmark output, 0..=10 (default: 1).