by ghttp · 1y ago · 0 comments
What It Does
Lets you select files interactively using a checkbox. Automatically ignores files like `node_modules`, `.git`, or anything in your `.gitignore`. Outputs a structured JSON file containing file paths and contents.
How to Use It
- Install: npm install -g context-dump
- Run in any project directory: context-dump JSON output is saved to `ai_context.json` by default.
- You can also:
Change the output filename with `-o`.
Exclude specific files or folders with `-e`.
Example OutputHere’s what the JSON looks like:
{ "project_structure": ["example.js"], "file_contents": { "example.js": { "content": "console.log('Hello, World!');", "extension": "js" } } }
Check it out on [Github](https://github.com/alwalxed/context-dump). If it sounds useful, give it a try.
No comments yet.