A simple CLI tool to combine all markdown files from a git repository into a single file. Useful for creating context files for LLMs.
npm install -g repodocs
npx repodocs https://github.com/user/repo
This will:
- Clone the repository
- Find all .md files
- Combine them into a single file named
username__repository-name__latestSha__timestamp-YYYY-MM-DD.txt
- Clean up temporary files
Each file in the combined output is separated by:
<file
path="file pathname in the repository"
>
- Clone this repository
- Run
npm install
- Make your changes
- Test locally with
node index.js
MIT