linebunny
v1.1.0
Published
Count lines of code in projects
Downloads
9
Readme
linebunny
Count lines of code in projects
Usage
bunx linebunny <directory> [-t file_type] [-l low_threshold] [-h high_threshold] [-s] [-i directory_to_ignore]Count TypeScript files in src directory:
bunx linebunny src -t tsCount JavaScript files in current directory:
bunx linebunny . -t js -t jsxCount multiple file types:
bunx linebunny src -t js -t ts -t jsx -t tsx -t vueCheck with manual thresholds:
bunx linebunny . -t js -l 80 -h 150Check specific framework files sorted by line count:
bunx linebunny components -t vue -t svelte -l 120 -h 250 -sIgnore common directories when scanning:
bunx linebunny . -t js -t ts -i node_modules -i .venv -i distRequired Arguments
<directory>- Directory to search in (can be relative or absolute path)
Optional Arguments
-t, --type- File extension to include (can be used multiple times)-l, --low- Low threshold for green/yellow boundary (default: 100)-h, --high- High threshold for yellow/red boundary (default: 300)-s, --sort- Sort files by line count in ascending order-i, --ignore- Directory name to ignore (can be used multiple times)
