Skip to content
/ sizr Public

A CLI to report the size of (web) assets on disk after applying compression

Notifications You must be signed in to change notification settings

chrstntdd/sizr

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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'`

About

A CLI to report the size of (web) assets on disk after applying compression

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages