@owenqwenpersonal/linecount
v0.1.1
Published
Count lines in files by extension with sensible ignore defaults.
Maintainers
Readme
linecount
linecount is a small CLI for counting lines across source files in a project.
It supports:
- extension whitelists
- default code-focused file types
- ignore patterns from
.lcignore - percentage breakdowns by file type
- short aliases like
lc
Commands
Build the CLI locally:
npm install
npm run buildCreate a default ignore file:
lc initRun a count with the built-in defaults:
lc --path ./Run a count with a custom whitelist:
lc --path ./ --whitelist ts,js,py,mdAdd extra ignore patterns from the command line:
lc --path ./ --ignoreDir dist,coverage,*.pyIgnore Files
If a .lcignore file exists in the target directory, it replaces the built-in ignore defaults. Extra --ignoreDir values are still added on top.
Examples of supported patterns:
distnode_modules.**.pysrc/generated/*
Documentation
More complete usage documentation and examples will live in docs/.
