Skip to content

Cli.formatAsciiTree method

Cli › formatAsciiTree

Unofficial

Format tree nodes as an ASCII tree.

Signature:

formatAsciiTree(nodes: CliTreeNode[], prefix?: string | undefined): string

Parameters:

Parameter Type Description
nodes CliTreeNode[] The tree nodes to format.
prefix? string | undefined The indentation prefix for nested nodes.

Returns: stringThe formatted ASCII tree string.