https://github.com/huozhi/sizers
Show your javascript file size after minification and gzip
https://github.com/huozhi/sizers
cli rust-cli size size-calculation
Last synced: 10 months ago
JSON representation
Show your javascript file size after minification and gzip
- Host: GitHub
- URL: https://github.com/huozhi/sizers
- Owner: huozhi
- Created: 2021-11-27T20:00:29.000Z (about 4 years ago)
- Default Branch: main
- Last Pushed: 2022-12-08T21:39:57.000Z (about 3 years ago)
- Last Synced: 2024-12-09T19:56:43.339Z (about 1 year ago)
- Topics: cli, rust-cli, size, size-calculation
- Language: Rust
- Homepage: https://crates.io/crates/js_sizers
- Size: 43.9 KB
- Stars: 14
- Watchers: 2
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
## js_sizers
> Show your javascript file size after minification and gzip
### Install
```sh
cargo install js_sizers
```
### Usage
```sh
js_sizers ./test.js
```
```sh
# Output
Reading file: ./test.js...
origin >> 20.38 kB (20384 bytes)
minified >> 3.73 kB (3733 bytes)
gzipped >> 1.89 kB (1894 bytes)
```
### Development
```sh
cargo build
touch test.js # create a test file as input and edit
cargo run ./test.js
```
### License
MIT License