@kszongic/line-count-cli
v1.0.0
Published
Count lines, words, and characters in files — a lightweight wc alternative for Node.js
Maintainers
Readme
@kszongic/line-count-cli
Count lines, words, and characters in files — a lightweight wc alternative for Node.js. Zero dependencies.
Install
npm install -g @kszongic/line-count-cliUsage
# Count everything in a file
line-count file.txt
# 42 310 1893 file.txt
# Lines only
line-count -l src/*.js
# 18 src/index.js
# 35 src/utils.js
# Words across multiple files with totals
line-count --words --total README.md package.json
# 310 README.md
# 25 package.json
# 335 totalOptions
| Flag | Description |
|------|-------------|
| -l, --lines | Show only line count |
| -w, --words | Show only word count |
| -c, --chars | Show only character count |
| -t, --total | Show totals for multiple files |
| -h, --help | Show help |
| -v, --version | Show version |
License
MIT © 2026 kszongic
