-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
e655aa3
commit e48f52b
Showing
2 changed files
with
37 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
# Tree | ||
|
||
You can use the tree command-line utility in Node.js to generate a tree-like structure of your project directory. Here's | ||
how you can use it: | ||
|
||
First, make sure you have the `tree-node-cli` package installed globally: | ||
|
||
```bash | ||
npm install -g tree-node-cli | ||
``` | ||
|
||
Then, navigate to your project directory and run the following command: | ||
|
||
```bash | ||
tree -I "node_modules|.git|.DS_Store" | ||
``` | ||
|
||
If you want to save the output to a file instead of printing it to the console, you can use the -o option followed by | ||
the file path: | ||
|
||
```bash | ||
tree -I "node_modules|.git|.DS_Store" > project_structure.txt | ||
``` | ||
|
||
This will save the output to a file named `project_structure.txt`. |