UNPKG

@hotdogc1017/tree-node-cli

Version:

Lists the contents of directories in a tree-like format, similar to the Linux tree command.

15 lines (12 loc) 297 B
export interface Options { allFiles?: boolean, dirsFirst?: boolean, dirsOnly?: boolean, sizes?: boolean, exclude?: RegExp[], maxDepth?: number, reverse?: boolean, trailingSlash?: boolean, ascii?: boolean, } export default function tree(path: string, options?: Options): string