1.0.1 • Published 3 years ago
protree v1.0.1
Why
- more automation.
- less writing.
- handle forgetting update the documentation :-)
Install
npm i protreeForm
protree path outUsage
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. Butnotethe 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.jsLicense
This project is MIT licensed.