#size #minification #javascript #gzip #file #filesize #show

bin+lib js_sizers

get your javascript file size after minification and gzip

8 releases

0.2.0 Dec 8, 2022
0.1.6 Feb 12, 2022
0.1.5 Dec 1, 2021
0.1.4 Nov 28, 2021

#711 in Compression

22 downloads per month

MIT license

18KB
93 lines

js_sizers

Show your javascript file size after minification and gzip

Install

cargo install js_sizers

Usage

js_sizers ./test.js
# Output
Reading file: ./test.js...

origin   >> 20.38 kB (20384 bytes)
minified >> 3.73 kB (3733 bytes)
gzipped  >> 1.89 kB (1894 bytes)

Development

cargo build

touch test.js # create a test file as input and edit
cargo run ./test.js

License

MIT License

Dependencies

~23–32MB
~545K SLoC