Effortlessly consolidate your entire codebase into a single, well-structured Markdown file with this CLI tool. Designed to make large codebases more LLM-friendly, CodeBaseMD provides a streamlined way to improve context when working with AI tools, perfect for developers leveraging AI-driven coding assistance.
npm
npx codebasemd
bun
bunx codebasemd
bunx codebasemd --help
bun add codebasemd --dev
bun run codebasemd
Install the dependencies:
bun install
Build:
bun run build
Use local build:
bun run gen
Bun is a fast JavaScript all-in-one toolkit.
It should work, just run the npx
equivalent
npx codebasemd
Use bunx to auto-install and run packages from npm. It's Bun's equivalent of npx or yarn dlx
- Implement tests
- Support more configuration options
- truncate large files
--truncate=<middle|top|bottom>
--truncate-percent=10
will truncate 10% starting from--truncate
arg only when the file exceeds--max-lines
arg - support ignore globs in eslint and tsconfig