Static generateGenerate a directory tree structure and output to the console or a file.
Command options.
Optional dir?: stringDirectory path to scan.
Optional encoding?: stringEncoding of file structure (default: 'utf-8').
Optional ignore?: string[]Patterns to ignore.
Optional inThe character to use for indicating that we are inside a directory (default: '/').
Optional indent?: stringIndentation configuration (e.g., 'spaces' or 'tabs').
Optional indentThe character to use for indentation (default: '-').
Optional output?: stringOutput destination file path.
Optional root?: stringThe name of the root directory in the structure (default: 'root'). // *
Optional structure?: "\n" | `
${string}>${string}` | `${string}>${string}
` | `${string}>${string}
${string}>${string}`Directory tree structure.
Optional tabs?: stringThe number of spaces to represent a single level of indentation (default: 4).
Optional treeThe character to use for tree representation (default: '|').
Optional typeInclude type markers in the structure (default: false).
Optional useWhether to use the "in-dir-character" for indicating that we are inside a directory (default: false).
Optional useWhether to use the "tree-character" for tree representation (default: true).
generate-tree
Generate a directory tree structure and output to the console or a file.
Static scanScan a directory and output its structure.
Command options.
Directory path to scan. (default: "./")
Patterns to ignore. (default: [])
The name of the root directory in the structure. (default: "root")
Include type markers in the structure. (default: false)
scan-dir
Scan a directory and output its structure.
Static validateValidate treegen structure from a file.
Command options.
Encoding of file structure. (default: "utf-8")
File path to validate structure.
The name of the root directory in the structure. (default: "root")
validate
Validate treegen structure from a file.
Generated using TypeDoc
CLI tool for generating and visualizing directory tree structures.
Command
treegen
Description
CLI tool for generating and visualizing directory tree structures.
Version
1.0.0