Licence
MIT
Version
1.0.1
Deps
0
Size
9 kB
Vulns
0
Weekly
0
protree
a cli tool to automate building the project tree structure
Why
- more automation.
- less writing.
- handle forgetting update the documentation :-)
Install
npm i protree
Form
protree path out
Usage
with markdown
Add
<!-- protree -->comment to the .md file in the place you want the tree to be in.You will add the
commentonly 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
commentthe tree will be appended in end of the file.The tree will be added to the markdown file in a
code blockformate.with console
Omittheoutargument.with others
Use the command as it is. But
notethe treewill notbe updated and it will always be appended.
Ignore Files
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.
Project Structure
.
├── .ptignore
├── LICENSE
├── README.md
├── index.js
└── util
├── genTree.js
├── loadIgnore.js
├── toMarkdownCode.js
└── writeTree.js
License
This project is MIT licensed.