@omnist-dev/omnist
    Preparing search index...

    Interface WriteOmlOptions

    Options for serializing a Document node into OML source text (spec §4).

    interface WriteOmlOptions {
        arrays?: boolean;
        indent?: number | null;
    }
    Index
    arrays?: boolean

    Collapse maximal runs of >= 2 consecutive same-label edges into label: [v1, v2, ...] array syntax (issue #218 upstream). A run of length 1 still writes as a plain scalar edge; a run is never merged across an edge with a different label in between. Default false produces output byte-identical to arrays not existing at all.

    indent?: number | null

    Pretty-mode indent width in spaces (default 2). null renders a single-line, machine-oriented form instead: edges joined by "; ", no newlines/padding -- mirroring write_json's own indent: null convention. Both forms round-trip through readOml.