gzipped
v0.0.5
Published
Command line utility to calculate gzip compression savings
Downloads
495
Maintainers
Readme
gzipped
Calculates gzip compression savings.
Installation
npm install -g gzipped
Usage
gzipped file.txt
Output:
Original size: 446 B
Compressed size: 287 B
Compression ratio: 64.35%
You can pass in any type of file - it's not limited to plain text.
Usage with STDIN
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.