ts-graphviz
    Preparing search index...

    Interface CommonParseOptionsBeta

    CommonParseOptions is an interface that defines the properties needed in order to parse a file.

    interface CommonParseOptions {
        filename?: string;
        maxASTNodes?: number;
        maxEdgeChainDepth?: number;
        maxHtmlNestingDepth?: number;
        maxInputSize?: number;
        maxNestingDepth?: number;
    }

    Hierarchy (View Summary)

    Index

    Properties

    filename?: string

    filename (optional): A string value that is used to identify the file to be parsed.

    maxASTNodes?: number

    maxASTNodes (optional): Maximum allowed number of AST nodes to create during parsing. Default is 100000. This limit prevents memory exhaustion from inputs with excessive elements. Set to 0 to disable this limit (not recommended for untrusted inputs).

    100000
    
    maxEdgeChainDepth?: number

    maxEdgeChainDepth (optional): Maximum allowed depth for chained edges. Default is 1000. This limit prevents stack overflow attacks from deeply chained edge structures.

    1000
    
    maxHtmlNestingDepth?: number

    maxHtmlNestingDepth (optional): Maximum allowed nesting depth for HTML-like strings. Default is 100. This limit prevents stack overflow attacks from deeply nested HTML structures.

    100
    
    maxInputSize?: number

    maxInputSize (optional): Maximum allowed input size in bytes. Default is 10MB (10485760 bytes). This limit prevents memory exhaustion from extremely large inputs. Set to 0 to disable this limit (not recommended for untrusted inputs).

    10485760
    
    maxNestingDepth?: number

    maxNestingDepth (optional): Maximum allowed nesting depth of graph and subgraph bodies (a graph's own body is depth 1). Default is 100. This limit keeps parsing, converting and printing deeply nested input bounded.

    100