document-it-cli
v1.0.1
Published
A CLI tool to generate folder structure tree documentation just from typing folder-tree in your terminal
Downloads
176
Maintainers
Readme
document_it
A simple CLI tool to generate folder structure tree documentation for your projects.
Installation
Global Installation (Recommended)
npm install -g document-it-cliLocal Development
git clone <your-repo-url>
cd document-it-cli
npm install
npm run build
npm linkUsage
Navigate to any directory and run:
document_itThis will create a STRUCTURE.md file in the current directory with the folder tree.
Options
document_it [options]Options:
-o, --output <file>- Specify output file (default:STRUCTURE.md)-d, --depth <number>- Maximum depth to traverse-i, --ignore <patterns...>- Additional patterns to ignore-H, --show-hidden- Show hidden files and folders-p, --print- Print to console instead of file-h, --help- Display help-V, --version- Display version
Examples
Basic usage:
document_itCustom output file:
document_it -o docs/structure.txtLimit depth to 3 levels:
document_it -d 3Print to console:
document_it -pIgnore additional patterns:
document_it -i "*.log" "temp" "cache"Show hidden files:
document_it -HCombine options:
document_it -o PROJECT_STRUCTURE.md -d 4 -i "*.test.js"Default Ignored Patterns
The tool automatically ignores:
node_modules.gitdistbuild.nextcoverage.DS_Store.env
Example Output
my-project/
├── src/
│ ├── components/
│ │ ├── Header.tsx
│ │ └── Footer.tsx
│ ├── utils/
│ │ └── helpers.ts
│ └── index.ts
├── package.json
├── tsconfig.json
└── README.mdDevelopment
Setup
npm installBuild
npm run buildTest locally
npm link
document_it -pClean build files
npm run cleanPublishing to npm
- Update version in
package.json - Build the project:
npm run build - Login to npm:
npm login - Publish:
npm publish
License
MIT
Author
Your Name
Contributing
Pull requests are welcome! Please ensure your code follows the existing style.
Issues
Report issues at: https://github.com/yourusername/document-it-cli/issues
