A tiny CLI tool to print the gzipped sizes of files matching a glob pattern.
gzip-sizes [...pattern] [options]
Options:
-d, --dir Find within a directory
-s, --sort Sort by size or name (default: size)
Examples:
# show the gzipped size of all JS files:
gzip-sizes **/*.js
# show the size of all CSS files within ./build, in descending order of size:
gzip-sizes *.css --dir build --sort size-
# find large JS files in your npm dependencies:
gzip-sizes **/node_modules/**/*.js --sort size-