当前位置:网站首页>Automatic generation of folder directory structure
Automatic generation of folder directory structure
2022-06-12 11:57:00 【achi010】
List of articles
Preface
When writing an article , It is often necessary to explain the directory structure of the filer . If you print out manually , Tedious typesetting 、 It's easy to make mistakes , What about automation ?
One 、 Result example
C:.
└─node_modules
├─npm
│ ├─.github
│ │ ├─ISSUE_TEMPLATE
│ │ └─workflows
│ ├─bin
│ │ └─node-gyp-bin
│ ├─changelogs
│ ├─docs
│ │ ├─content
│ │ │ ├─cli-commands
│ │ │ ├─configuring-npm
│ │ │ └─using-npm
│ │ └─src
│ │ ├─components
│ │ │ └─home
│ │ ├─images
│ │ ├─pages
│ │ └─templates
│ ├─lib
│ │ ├─auth
│ │ ├─config
│ │ ├─doctor
│ │ ├─install
│ │ │ └─action
│ │ ├─search
│ │ └─utils
Two 、Windows 11
operating system : Windows 11 & 10
Windows System tree command , This command can be used to .
Example
Windows 11 Examples are as follows
Easy to use
C:\Programming\nodejs>tree
volume Windows-SSD Folder PATH list
The volume serial number is 4288-DA87
C:.
└─node_modules
├─npm
│ ├─.github
│ │ ├─ISSUE_TEMPLATE
│ │ └─workflows
│ ├─bin
│ │ └─node-gyp-bin
│ ├─changelogs
│ ├─docs
help
# help
C:\Programming\nodejs>tree /?
Graphically displays the folder structure of a drive or path .
TREE [drive:][path] [/F] [/A]
/F Displays the name of the file in each folder .
/A Use ASCII character , Instead of using extended characters .
The results are output to a file
C:\Programming\nodejs>tree > demo.md
3、 ... and 、node.js Of tree
operating system : CentOS Linux release 7.9.2009 (Core)
node.js: v16.15.0
1.node.js
# download
wget https://cdn.npmmirror.com/binaries/node/v16.15.0/node-v16.15.0-linux
-x64.tar.xz
# decompression
tar -xvf node-v16.15.0-linux-x64.tar.xz
# To configure ( It can also be used without configuration , You can find the command directory )
ln -s /node-v16.15.0-linux-x64/bin/npm /usr/local/bin
ln -s /node-v16.15.0-linux-x64/bin/node /usr/local/bin
# Verify that the configuration is successful
node -v
nopm -v
2.tree
install tree
# Global installation tree
npm i tree-node-cli -g
# After installation ,node The directory will be added tree
/node-v16.15.0-linux-x64/bin/tree
# To configure
ln -s /node-v16.15.0-linux-x64/bin/tree /usr/local/bin
# Verify configuration
tree -V
The folder directory structure is automatically generated , And output to a file
# Example
tree -L 2 > README.md
# result
node-v16.15.0-linux-x64
├── CHANGELOG.md
├── LICENSE
├── README.md
├── bin
│ ├── README.md
│ ├── corepack
│ ├── node
│ ├── npm
│ ├── npx
│ ├── tree
│ └── treee
├── include
│ └── node
├── lib
│ └── node_modules
└── share
├── doc
├── man
└── systemtap
# help
tree -h
PS : In contrast , Feeling Windows Of tree It's just a scum .Windows You can also use node This method of , The configuration method is the same .
Windows Installation configuration node Sure Reference resources
summary
In fact, the method is relatively simple . The key is to find the right way ~~!!!
边栏推荐
- 邻居子系统之ARP协议数据处理过程
- System. IO. Fileloadexception exception
- 5G NR協議學習--TS38.211下行通道
- 視頻分類的類間和類內關系——正則化
- Logrotate log rotation method create and copyruncate principles
- LeetCode_二分搜索_中等_162. 寻找峰值
- TinyMCE series (III) introduction to common TinyMCE APIs
- LeetCode 1037. Effective boomerang (vector cross product)
- 6.6 Convolution de séparation
- How to operate the newly revised Taobao merchants and what should be paid attention to
猜你喜欢

Create servlet project

M-arch (fanwai 10) gd32l233 evaluation -spi drive DS1302

5g NR Protocol Learning - - ts38.211 downlink channel

VirtualBox virtual machine shut down due to abnormal system. The virtual machine startup item is missing

Design of virtual scrolling list

Batch load/store instructions of arm instruction set

ARM processor mode and register

Doris记录服务接口调用情况

QML学习 第二天

6.6 rl:mdp and reward function
随机推荐
ARM处理器模式与寄存器
Go sends SMS based on alicloud
conda环境下pip install 无法安装到指定conda环境中(conda环境的默认pip安装位置)
Naming specification / annotation specification / logical specification
5g NR protocol learning -- ts38.211 downlink channel
Deep learning and CV tutorial (14) | image segmentation (FCN, segnet, u-net, pspnet, deeplab, refinenet)
创建Servlet项目
Neighbor item status update of neighbor subsystem
【深度学习基础】反向传播法(1)
Kubernetes cluster setup
Google Earth engine (GEE) - quick land classification by kmeans clustering (double for loop quick parameter adjustment)
PIP install in the CONDA environment cannot be installed into the specified CONDA environment (the default PIP installation location of the CONDA environment)
Create servlet project
单元测试用例框架--unittest
C# 37. Textbox scroll bar and multiline
K52. Chapter 1: installing kubernetes v1.22 based on kubeadm -- cluster deployment
Cookies and sessions
QML学习 第一天
IP address management
System.IO.FileLoadException异常