Instantly copy your entire codebase to clipboard as structured JSON
Perfect for sharing code with AI assistants, creating backups, or analyzing codebases.
npm install -g codeclip
## Quickstart
codeclip # Copy current directory (JS/TS files)
codeclip --path=./src # Copy specific directory
codeclip --ext=.py # Copy Python files
codeclip --all # Copy all file types
codeclip --output=backup.json # Save to file
## Options
--path=<dir> - Directory to read (default: current)
--ext=<extensions> - File extensions (default: .js,.jsx,.ts,.tsx,.mjs,.cjs)
--all - Include all file types
--output=<file> - Save to file instead of clipboard
--help - Show help
## Examples
# Share with AI
codeclip --path=./src --ext=.jsx,.tsx
# Backup configs
codeclip --path=~/.config/nvim --ext=.lua --output=nvim-backup.json
# Python project
codeclip --ext=.py
# Multiple file types
codeclip --ext=.js,.json,.md
# Everything
codeclip --all