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:

ParameterTypeDescription
nodesCliTreeNode[]The tree nodes to format.
prefix?string | undefinedThe indentation prefix for nested nodes.

Returns: stringThe formatted ASCII tree string.