a cli tool to automate building the project tree structure
- more automation.
- less writing.
- handle forgetting update the documentation :-)
npm i protree
protree path out
-
Add
<!-- protree -->
comment to the .md file in the place you want the tree to be in.You will add the
comment
only one time and the tree will be updated in that place in case you update your structure in the future.In case you didn't add the
comment
the tree will be appended in end of the file.The tree will be added to the markdown file in a
code block
formate. -
Omit
theout
argument. -
Use the command as it is. But
note
the treewill not
be updated and it will always be appended.
You can ignore files you don't want it to be included in the tree structure by creating a .ptignore
file and add all the ignored files in it.
.
├── .ptignore
├── LICENSE
├── README.md
├── index.js
└── util
├── genTree.js
├── loadIgnore.js
├── toMarkdownCode.js
└── writeTree.js
This project is MIT licensed.