gzip-size-cli
Version:
Get the gzipped size of a file or stdin
37 lines (26 loc) • 638 B
Markdown
# gzip-size-cli
> Get the gzipped size of a file or stdin
## Install
```sh
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](https://github.com/sindresorhus/gzip-size) - API for this module