当前位置:网站首页>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 ~~!!!
边栏推荐
- LeetCode 497. Random points in non overlapping rectangles (prefix and + bisection)
- The second regular match is inconsistent with the first one, and the match in the regular loop is invalid
- Lambda and filter, index of list and numpy array, as well as various distance metrics, concatenated array and distinction between axis=0 and axis=1
- 視頻分類的類間和類內關系——正則化
- ARP protocol data processing process of neighbor subsystem
- Google Earth engine (GEE) - quick land classification by kmeans clustering (double for loop quick parameter adjustment)
- Shardingjdbc-5.1.0 monthly horizontal table splitting + read-write separation, automatic table creation and node table refresh
- UML系列文章(30)体系结构建模---制品图
- System.IO.FileLoadException异常
- Design of TTable
猜你喜欢

【深度学习基础】神经网络的学习(4)

Logrotate log rotation method create and copyruncate principles
![[foundation of deep learning] learning of neural network (4)](/img/8d/0e1b5d449afa583a52857b9ec7af40.png)
[foundation of deep learning] learning of neural network (4)

Create servlet project

ARM处理器模式与寄存器

LeetCode 890. 查找和替换模式(模拟+双哈希表)

6.6 Convolution de séparation

UML series articles (31) architecture modeling - deployment diagram

LeetCode 1037. 有效的回旋镖(向量叉乘)

QML学习 第一天
随机推荐
Basic concepts of machine learning
Relation entre les classes et à l'intérieur des classes de classification vidéo - - Régularisation
文件夹目录结构自动生成
Kubernetes cluster setup
Getting started with NVIDIA Jetson nano Developer Kit
QML first day
【数据库】sqlite版本升级、降级
Unlimited growth, we will all go to the future | the 15th anniversary of the founding of InfoQ China
MySQL lock leak detection and defect filling
淘宝新改版商家如何操作,需要注意的点有哪些
6.6 RL:MDP及奖励函数
ARM指令集之批量Load/Store指令
单元测试用例框架--unittest
ioremap
Reentrantlock source code analysis
Record the pits encountered when using JPA
Design of virtual scrolling list
ioremap
LeetCode 1037. 有效的回旋镖(向量叉乘)
ARM指令集之Load/Store指令寻址方式(一)