A CLI tool to aggregate your codebase into a single markdown file for use with AI models.
npm install -g merf
merf [directory] -o output.md -i node_modules .git
Options:
-
-o, --output <file>
: Output file (default: codebase.md) -
-i, --ignore <patterns...>
: Ignore patterns (default: node_modules, .git)
# Watch mode
npm run dev
# Run tests
npm test
Aggregate current directory:
merf
Specify directory and output:
merf ./my-project -o project.md
Add custom ignore patterns:
merf -i node_modules .git dist build