Crates.io | oxc_mangler |
lib.rs | oxc_mangler |
version | 0.83.0 |
created_at | 2024-07-11 13:17:31.522919+00 |
updated_at | 2025-08-29 06:54:14.14482+00 |
description | A collection of JavaScript tools written in Rust. |
homepage | https://oxc.rs |
repository | https://github.com/oxc-project/oxc |
max_upload_size | |
id | 1299563 |
size | 61,810 |
Variable name mangling for JavaScript minification.
This crate provides variable name mangling capabilities for JavaScript minification. It shortens variable names to reduce bundle size while preserving program semantics and ensuring gzip-friendly output.
Uses a character set optimized for JavaScript identifiers:
a-zA-Z_$
(54 options)a-zA-Z0-9_$
(64 options)a
, b
, ..., aa
, ab
, etc.The mangling algorithm considers:
The mangler works as part of the broader minification pipeline:
This approach ensures maximum size reduction while maintaining correctness.