#minify #css #javascript #filesize #web-performance #compression #command-line-tool

app minix

A straightforward minifier for JavaScript and CSS files, developed using Rust. This tool efficiently reduces the size of JS and CSS files by removing unnecessary characters, whitespace, and comments without affecting functionality.

7 releases

0.1.6 Jul 10, 2024
0.1.5 Jun 16, 2024
0.1.3 May 26, 2024

#175 in Text processing

Download history 13/week @ 2024-09-12 6/week @ 2024-09-19 3/week @ 2024-09-26 1/week @ 2024-10-03

600 downloads per month

MIT license

14KB
251 lines

Minix

A straightforward minifier for JavaScript and CSS files, developed using Rust. This tool efficiently reduces the size of JS and CSS files by removing unnecessary characters, whitespace, and comments without affecting functionality. Utilizing Rust’s performance and safety features, it offers a fast and reliable solution for optimizing web assets, improving load times and overall website performance. Ideal for developers looking for a lightweight and effective way to minimize their codebase.

To Install using crates.io

cargo install minix

Basic example usage:

JS:

minix -i file.js -o file.min.js

# OR

minix -i js/*.js -o bundle.js

# OR 

minix -i js/*.js

CSS:

minix -i file.css -o file.min.css

# OR

minix -i css/*.css -o bundle.css

# OR 

minix -i css/*.css

Dependencies

~6–19MB
~187K SLoC