Gem 一覧へ戻る
sindresorhus/gzip-size-cli(新しいタブで開きます)
主要言語: JavaScript
Get the gzipped size of a file or stdin
- star 数
- 194
- watcher 数
- 5
- fork 数
- 10
- issue 数
- 0
- 最終更新
- 2021/11/23
主要言語: JavaScript
Get the gzipped size of a file or stdin
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
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