total-lines
v0.1.2
Published
Count how many lines of code you have written with the 'lines' command
Maintainers
Readme
total-lines
A lightweight CLI tool to count lines of code in your project.
Installation
npm i -g total-linesUsage
# Count lines in current directory
lines .
# Count lines in a specific path
lines /path/to/project
# Count with verbose output (shows individual files)
lines -v /path/to/project
# Show version
lines -V
# Show help
lines -hConfiguration
Create ~/.total-lines.json to customize:
{
"suffix": [".ts", ".js", ".py", "go"],
"exclude": ["**/node_modules", "**/dist", "**/*.md"]
}View Current Config
# Show supported file suffixes
lines config suffix
# Show exclusion patterns
lines config exclude
# Show config file format
lines configFeatures
- Multi-language support: 40+ file extensions supported by default
- Smart exclusion: Automatically excludes node_modules, dist, .git, etc.
- Configurable: Customize via config file
- Verbose mode: See per-file breakdown
- Detailed output: Lines grouped by file extension
License
MIT
