https://github.com/the-best-codes/codeometer
Powerful CLI for analyzing code statistics across your projects
https://github.com/the-best-codes/codeometer
bash counter fast lightweight lines lines-of-code measurement
Last synced: 2 months ago
JSON representation
Powerful CLI for analyzing code statistics across your projects
- Host: GitHub
- URL: https://github.com/the-best-codes/codeometer
- Owner: The-Best-Codes
- License: mit
- Created: 2024-09-03T21:55:19.000Z (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2024-11-30T14:49:00.000Z (over 1 year ago)
- Last Synced: 2025-09-14T03:31:16.882Z (10 months ago)
- Topics: bash, counter, fast, lightweight, lines, lines-of-code, measurement
- Language: Shell
- Homepage:
- Size: 34.2 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
- Security: SECURITY.md
Awesome Lists containing this project
README
# Codeometer
Codeometer is a powerful CLI tool for analyzing code statistics across your projects.
## Description
Codeometer provides detailed code analysis for your projects, helping you understand your codebase size, composition, and structure. It automatically detects project types and provides relevant statistics while excluding auto-generated code.
### Features
- Automatic project type detection (Node.js, Python, Java, Rust, Go, Ruby, PHP, C/C++)
- Counts lines of code across multiple file types
- Distinguishes between hand-written and auto-generated code
- Optional comment line counting
- Support for hidden files and directories
- Colored and formatted output
- Progress bar for large projects
- Detailed statistics and percentages
## Installation
Codeometer is packaged for Debian-based systems. To install, download the DEB file and open it in an app installer.
If you don't have an app installer, download the file and run this command:
```bash
sudo dpkg -i codeometer_1.2.0.deb
```
## Dependencies
- bash (version 4.0 or later)
- find
- wc
- awk
- tput (for terminal formatting)
## Usage
Basic usage:
```bash
codeometer /path/to/project
```
Available options:
```bash
codeometer [OPTIONS] /path/to/project
Options:
--no-color Disable colored output
--no-format Disable formatted output
--hidden Include hidden files and directories
--comments Count and display comment statistics
--version Display version information
--help Display this help message
```
## Examples
Count lines in a Python project:
```bash
codeometer /path/to/python/project
```
Include hidden files and count comments:
```bash
codeometer --hidden --comments /path/to/project
```
## Contributing
Contributions are welcome! Please feel free to submit a Pull Request.
## License
Codeometer is licensed under the MIT License.
## Contact
Maintainer: [BestCodes](https://bestcodes.dev)
## Links
- [GitHub Repository](https://github.com/The-Best-Codes/codeometer)