@kszongic/byte-convert-cli
v1.0.0
Published
Convert between byte units from the command line — B, KB, MB, GB, TB, PB
Maintainers
Readme
byte-convert-cli
Convert between byte units from the command line. Zero dependencies.
Install
npm install -g @kszongic/byte-convert-cliUsage
# Auto-format
byte-convert 1500000B # → 1.50 MB
# Specific target unit
byte-convert 2.5GB MB # → 2500.00 MB
# Binary mode (1024-based)
byte-convert 1024KB MB -b # → 1.00 MB
byte-convert 1GB MB --binary # → 1024.00 MBUnits
B · KB · MB · GB · TB · PB
Flags
| Flag | Description |
|------|-------------|
| --binary, -b | Use 1024-based conversion (default: 1000-based) |
License
MIT © 2026 kszongic
