1.1.0 • Published 4 years ago

show-file-tree v1.1.0

Weekly downloads
1
License
ISC
Repository
-
Last release
4 years ago

文件目录层级展示

Installation

Using npm:

$ npm i --save show-file-tree

$ showTree list <file-level> <file-path>

// 浏览3层; 基于当前的上一层
$ showTree list 3 ../

API 解释

showTree list

名称说明版本
file-level需要浏览的文件层级,默认十层; -1 表示不控制1.0.0
file-path文件路径,默认当前目录1.0.0

showTree align

名称说明版本
baseLen对齐长度1.1\1
baseString对齐字符串1.1.0