Get the gzipped size of a file or stdin
$ npm install --global gzip-size-cli
$ gzip-size --help
Usage
$ gzip-size <file>
$ cat <file> | gzip-size
Example
$ gzip-size index.js
211
Combine it with pretty-bytes
to get a human readable output:
$ gzip-size jquery.min.js | pretty-bytes
29.34 kB
- gzip-size - API for this module
MIT © Sindre Sorhus