A small CLI that analyzes a codebase and prints a concise, colored summary of files and languages. Everything runs locally — no data is sent anywhere.
A small CLI that analyzes a codebase and prints a concise, colored summary of files and languages. Everything runs locally — no data is sent anywhere.
After this package is published to npm you can install it globally:
``bash`
npm install -g code-info
Or run it with npx without installing:
`bash`
npx code-info [folders] --cwd . --exclude node_modules --ext ts --unknown
Once installed globally the command is:
`bash`
code-info [folders] [flags]
cinfo [folders] [flags]
Common flags:
- --cwd — project root to resolve paths (default: .)--exclude
- — paths or glob patterns to ignore (repeatable)--ext
- — include only files with given extensions (repeatable, without leading dot)--unknown
- — include files with unknown extensions in the language breakdown--verbose
- — print extra debugging info
Example:
`bash``
code-info src --cwd . --exclude node_modules .git --ext ts --ext js
The CLI prints a compact summary (files, lines, size, code lines, blank lines, languages) and a per-language table with counts and sizes. Output uses ANSI colors and a fixed-width table layout for readability.
All analysis happens locally on your machine. The tool does not transmit file contents or metadata to any remote service.