Modern CLI to explore, filter and copy project content with consistency and simplicity.
- 🌳 Generate project tree (
tree) - 📋 Copy file contents (
copy-content/cpc) - ⚙️ Centralized config via
.shtk.json(fortree) - 🔍 Ignore rules by name, folder and glob
- 📦 JSON and YAML output
- 📊 Detailed statistics
- 🚫 Robust error handling
npm install -g @byetevinn/shtoolkitnpx @byetevinn/shtoolkit treeGenerate project structure.
shtk tree👉 Full docs: tree
Copy file contents from one or more paths.
shtk cpc src👉 Full docs: copy-content
Initialize configuration file.
shtk init👉 Full docs: init
Run:
shtk initThis creates a .shtk.json file used by the tree command.
ℹ️ Note:
copy-contentdoes NOT use.shtk.json— it always follows the paths provided.
Ignore files/folders anywhere
"names": ["node_modules", ".git"]Ignore files inside specific folders
"filesIn": ["screenshots", "src/temp/uploads"]Glob support
"patterns": ["*.log", "*.tmp"]{
"name": "project",
"type": "folder",
"children": []
}name: project
type: folder
children: []📊 Copy Content Result
📁 Total Files : 23
✅ Processed : 23
⏭ Skipped : 0
❌ Errors : 0
📄 Total Lines : 1213
- Prepare context for AI (ChatGPT, etc)
- Generate project documentation
- Analyze codebase structure
- Debug file content
- Markdown output
-
--flatflag -
.gitignoreintegration - Multi-directory support
Built by Stevan Padilha
MIT