gzipped

0.0.5 • Public • Published

gzipped

Build Status Code Climate

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.

Package Sidebar

Install

npm i gzipped

Weekly Downloads

43

Version

0.0.5

License

ISC

Last publish

Collaborators

  • robinmurphy