| Crates.io | codstts |
| lib.rs | codstts |
| version | 0.1.0 |
| created_at | 2025-01-26 06:30:11.573622+00 |
| updated_at | 2025-01-26 06:30:11.573622+00 |
| description | A code statistics tool that analyzes programming language distribution in projects |
| homepage | |
| repository | https://github.com/zheng0116/codstts |
| max_upload_size | |
| id | 1531107 |
| size | 54,895 |
English | δΈζ
A code statistics tool written in Rust that analyzes programming language distribution in projects.
cargo install codstts
Basic usage:
# Analyze current directory
codstts
# Use simple mode
codstts -s
# Use detailed mode
codstts -d
# Analyze specific directory
codstts path/to/your/project
You can create a .codstts.toml file in your project root for custom configuration:
# Paths to ignore
ignore_paths = ["vendor", "node_modules"]
# Language mappings
[language_mappings]
"jsx" = "React"
"tsx" = "React"
# Extensions to exclude
exclude_extensions = ["log", "tmp"]
# Files to exclude
exclude_files = ["LICENSE", "README.md"]
Simple mode:
Languages
ββββββββββββββββββββββββββββββββββββββββββββββββββ
β Python 62.1% (15666 bytes)
β JavaScript 16.1% (4046 bytes)
β CSS 13.9% (3504 bytes)
β HTML 7.3% (1836 bytes)
β Shell 0.6% (149 bytes)
Detailed mode includes additional information such as code lines, comment lines, etc.
This project is open-sourced under the MIT
Issues and Pull Requests are welcome!