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.

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 0.0.5
    46
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 0.0.5
    46
  • 0.0.4
    0
  • 0.0.3
    0
  • 0.0.2
    0

Package Sidebar

Install

npm i gzipped

Weekly Downloads

46

Version

0.0.5

License

ISC

Last publish

Collaborators

  • robinmurphy