Skip to content

Latest commit

 

History

History
22 lines (16 loc) · 498 Bytes

README.md

File metadata and controls

22 lines (16 loc) · 498 Bytes

Sizr

A basic CLI util to report file size of (web) assets on disk after applying compression

# Only collect brotli encoding
sizr br ./lib/mod.js

# Collect brotli & gzip encoding
sizr br,gz ./lib/mod.js

# Only collect brotli encoding & raw size
sizr br,raw ./lib/mod.js
# Pipe `fd` as file input list and get brotli, gzip, and raw sizes
sizr `fd --type file '.(js|ts)$'`

# Pipe `find` and print the brotli-encoded size
sizr br `find . -name '*.js' -o -name '*.ts'`