@kszongic/byte-count-cli
v1.0.0
Published
Count bytes in files or stdin — fast, zero-dependency CLI
Maintainers
Readme
@kszongic/byte-count-cli
Count bytes in files or stdin — fast, zero-dependency CLI.
Install
npm install -g @kszongic/byte-count-cliUsage
# Single file
byte-count package.json
# 468 468 B package.json
# Multiple files
byte-count *.js
# 1726 1.7 KB index.js
# 1726 1.7 KB total
# From stdin
echo "hello world" | byte-count
# 12 (12 B)
# Total only
byte-count -t src/*.js
# 8450 8.3 KB totalOptions
| Flag | Description |
|------|-------------|
| -h, --help | Show help |
| -v, --version | Show version |
| -t, --total | Show only the total for multiple files |
Output
Tab-separated: <bytes>\t<human>\t<filename>
Human-readable sizes auto-scale (B → KB → MB → GB).
License
MIT © 2026 kszongic
