MCPcopy Index your code
hub / github.com/GuillaumeGomez/minifier-rs

github.com/GuillaumeGomez/minifier-rs @main

Chat with this repo
repository ↗ · DeepWiki ↗ · + Follow
397 symbols 966 edges 22 files 9 documented · 2%
What it actually does AI analysis from the code graph — generated when you open this
loading…
README

minifier-rs

Minifier tool/lib for JS/CSS/JSON files.

This crate provides both a library and binary, depending on your needs.

Usage

To use the binary, just run like this:

> cargo run test.js

To use the library, add it into your Cargo.toml file like this:

[dependencies]
minifier = "0.2"

WARNING!!

Please be aware that this is still at a very early stage of development so you shouldn't rely on it too much!

Core symbols most depended-on inside this repo

apply
called by 50
src/js/token.rs
len
called by 43
src/js/utils.rs
to_string
called by 29
src/js/utils.rs
tokenize
called by 22
src/js/token.rs
simple_minify
called by 19
src/js/tools.rs
next
called by 18
src/js/utils.rs
inner_double_checks
called by 15
src/js/tools.rs
is_white_character
called by 14
src/js/token.rs

Shape

Function 279
Method 92
Class 14
Enum 12

Languages

Rust62%
TypeScript38%

Modules by API surface

tests/files/minified_main.js75 symbols
tests/files/main.js75 symbols
src/js/token.rs67 symbols
src/js/tools.rs40 symbols
src/css/token.rs29 symbols
src/js/utils.rs20 symbols
src/css/tests.rs18 symbols
src/cli.rs10 symbols
src/json/read/byte_to_char.rs8 symbols
src/json/mod.rs8 symbols
src/html.rs8 symbols
src/json/read/json_read.rs7 symbols

For agents

$ claude mcp add minifier-rs \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact