sindresorhus / gzip-size-cli

Get the gzipped size of a file or stdin

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

About

Get the gzipped size of a file or stdin

License:MIT License


Languages

Language:JavaScript 100.0%