minify-js

Extremely fast JavaScript minifier, written in Rust.

Currently usable, but under development, with the goal to be similar in effectiveness to common minifiers including esbuild and terser. Improvements and suggestions welcome!

Goals

Features

Usage

Add the dependency:

toml [dependencies] minify-js = "0.0.2"

Call the method:

```rust use std::io::BufWriter; use minify_js::minify;

let mut code: &[u8] = b"let x = 1;"; let mut out = BufWriter::new(Vec::new()); minify(code.tovec(), &mut out).unwrap(); asserteq!(out.getref().asslice(), b"let x=1;"); ```

In progress