gzip-size-cli
v5.1.0
Published
Get the gzipped size of a file or stdin
Downloads
31,941
Maintainers
Readme
gzip-size-cli
Get the gzipped size of a file or stdin
Install
npm install --global gzip-size-cli
Usage
$ gzip-size --help
Usage
$ gzip-size <file>
$ cat <file> | gzip-size
Options
--level Compression level [0-9] (Default: 9)
--raw Display value in bytes
--include-original Include original size
Examples
$ gzip-size unicorn.png
192 kB
$ gzip-size unicorn.png --raw
192256
$ gzip-size unicorn.png --include-original
392 kB → 192 kB
Related
- gzip-size - API for this module