Print the gzipped size of any file
A simple command to answer the age old question "But how big will it be when gzipped?".
Install the command:
go get github.com/m90/gzipped/cmd/gzippedInstall the library:
go get github.com/m90/gzippedPass the location of a file:
gzipped ./styles.cssor use pipes:
cat ./bundle.js | uglifyjs -mangle | gzippedThe 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.
MIT © Frederik Ring