【文件属性】:
文件名称:terminal-tree:在终端中显示彩色树
文件大小:24KB
文件格式:ZIP
更新时间:2021-06-12 15:18:21
JavaScript
终端树
安装
$ npm i -g terminal-tree
命令行界面
$ terminal-tree example.json
'tree' 命令的输出 Markdown。
$ tree -J | terminal-tree -Tm
用于 Node.js
var tree = require ( "terminal-tree" ) ;
var data = {
test : [ 1 , 2 , 3 , 4 ] ,
foo : "bar"
} ;
console . log ( tree ( data , {
symbol : true ,
highlight : true ,
padding : 1
} ) ) ;
执照
麻省理工学院
【文件预览】:
terminal-tree-master
----bin()
--------treejcmd.js(312B)
--------terminal-tree(1KB)
----index.js(4KB)
----themes.js(243B)
----img()
--------screenshot.png(19KB)
----package.json(534B)
----test()
--------object-in-array.js(238B)
--------color.js(235B)
--------example.js(215B)
--------example.json(1KB)
--------types.js(342B)
----README.md(509B)