m90 / gzipped

Print the gzipped size of any file

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

gzipped

Build Status godoc

Print the gzipped size of any file

A simple command to answer the age old question "But how big will it be when gzipped?".

Installation:

Install the command:

go get github.com/m90/gzipped/cmd/gzipped

Install the library:

go get github.com/m90/gzipped

Command usage

Pass the location of a file:

gzipped ./styles.css

or use pipes:

cat ./bundle.js | uglifyjs -mangle | gzipped

The following options are available:

Usage of gzipped:
  -bytes
    	display sizes in raw bytes instead of humanized formats
  -timeout duration
    	deadline for stdin to supply data (default 2s)

Refer to the godoc for information about how to use it as a library.

License

MIT © Frederik Ring

About

Print the gzipped size of any file

License:MIT License


Languages

Language:Go 99.3%Language:Makefile 0.7%