gzipped
Calculates gzip compression savings.
Installation
npm install -g gzipped
Usage
gzipped file.txt
Output:
Original size: 446 BCompressed size: 287 BCompression ratio: 64.35%
You can pass in any type of file - it's not limited to plain text.
STDIN
Usage with You can also use gzipped with input from STDIN
, i.e:
cat file.txt | gzipped
This allows you to use it with remote resources:
curl http://www.example.com | gzipped
And the clipboard:
pbpaste | gzipped
etc.