A lightweight TypeScript tool to bundle a project directory into a single structured text file. Designed to provide comprehensive context for AI models with limited file upload capabilities and to facilitate easy project reconstruction.
- Project Bundling: Packs all project files (respecting
.gitignore) into one.txtfile. - Reconstruction: Rebuilds the entire project structure from the bundle.
- Visual Tree: Generates a clear file structure overview in the output.
- Binary Detection: Automatically identifies and marks binary, empty, and symbolic link files.
To install CodeFile from anywhere in your terminal:
npm install -g sapirrior/codefile-nodenpm install sapirrior/codefile-nodecodefile [directory] [-o output.txt]./node_modules/.bin/codefile [directory] [-o output.txt]-b, --build: Reconstruct project from a pack file.-o, --output: Specify output path for packing or input path for building.-h, --help: Show help information.
MIT