As a frequent blogger, you often need to introduce the file directory structure when introducing your own projects. In the past, either manual codeword input line by line or simple and crude screenshots could not easily and quickly construct a file directory structure diagram. Later, when learning the algorithm, I found that the file directory structure was similar to
TreeThe concept is very similar, so it sprouted to make an automated file directory structure generation tool.
How to Use&& Examples
git clone email@example.com:jrainlau/filemap.git cd ./filemap && cd example node filemap.js
(PS: please ensure that
filemap.jsThe file is in the root directory)
node filemap.js <-i folder-name folder-name folder-name ...>
< -i folder-name >: in order to hide some directories that contain too many sub-files and sub-folders, for example
node_modulesFolder, we can use this command to prevent them from expanding. File names are separated by spaces.