快速生成文件夹目录结构,支持定义目录层级,支持生成到 markdown 文件。
Quickly generate folder directory structure, support for defining directory hierarchy, support for generating to markdown files.
npm i folder-print -g
当然你也可以直接使用 npx 运行
Of course you can also run it directly with npx
npx folder-print
Output the tree structure of the current directory: (default output maximum level is 10)
fp
# or
folder-print
# 免安装(No installation)
npx folder-print
(Specify the maximum level of output)
# 指定输出最大层级(Specify the maximum level of output)
fp -d 0
# or
folder-print -d 0
# 免安装(No installation)
npx folder-print -d 0
指定输出最大层级
Specify the maximum level of output
Save the output result to a file
# 将输出结果保存到文件中(Save the output result to a file)
fp -p
# or
folder-print -p
# 免安装(No installation)
npx folder-print -p