Skip to content

pyrinelaw/dir-tree-output

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

object-write-to-file

输出文件夹多层目录

执行示例

npm install -g dir-tree-output

cd dir
dir-tree -deep 2 -stretch -ignore node_modules .bin dist

输出示例

test
 ├─ assets
 │   ├─ images
 │   └─ style
 ├─ build
 │   └─ test
 ├─ scripts
 ├─ src
 │   ├─ components
 │   ├─ routes
 │   └─ utils
 └─ package.json

参数说明

参数 类型 是否必传 默认值 说明
-v none undefined 输出版本
-h none undefined 输出帮助文档
-deep Number 0 目录层数,0表示无限层级
-stretch Boolean false 是否展开输出,带空格
-ignore Array [] 忽略目录或者文件夹,与 git 中的忽略文件写法一致,也可以在根目录下添加 “.tree.ignore” 文件,用法同 git 忽略配置文件一致

About

输出文件夹多层结构

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published