UGLIFY-JS(1)
πΈ NAME πΈ
okay so bestie, welcome to uglify-js β that's the manual page, section 1, the whole User Commands situation π
β and she is literally a JavaScript parser, mangler/compressor and beautifier toolkit. all of that. one tool. main character energy fr fr π
β¨ SYNOPSIS β¨
uglifyjs [files...] [options]
π OPTIONS π
-h,--helpβ prints the usage info. want the deets on every single option available? hit--help optionsand she'll spill π«Ά-v,-V,--versionβ prints the version number. three whole ways to ask, iconic.-p,--parse <options>β specify parser options.-c,--compress [options]β enable the compressor / specify compressor options.-m,--mangle [options]β mangle names / specify mangler options.--mangle-props [options]β mangle properties / specify mangler options.-b,--beautify [options]β beautify the output / specify output options.-O,--output-opts <options>β output options, but with beautify disabled.-o,--output <file>β the output file. default is STDOUT, no cap.--annotationsβ process and preserve comment annotations.--no-annotationsβ ignore and discard comment annotations.--comments [filter]β preserve copyright comments in the output. gotta protect the legal vibes β¨--config-file <file>β readminify()options from a JSON file.-d,--define <expr>[=value]β global definitions.-e,--enclose [arg[,...][:value[,...]]]β embed everything in a big function, with configurable argument(s) & value(s).--expressionβ parse a single expression, rather than a program.--ieβ support non-standard Internet Explorer. yes bestie, that Internet Explorer π--keep-fargsβ do not mangle/drop function arguments.--keep-fnamesβ do not mangle/drop function names. useful for code relying onFunction.prototype.name.--moduleβ process input as an ES module (implies--toplevel).--no-moduleβ process input with improved JavaScript compatibility.--name-cache <file>β file to hold mangled name mappings.--renameβ force symbol expansion.--no-renameβ disable symbol expansion.--selfβ build UglifyJS as a library (implies--wrap UglifyJS).--source-map [options]β enable source map / specify source map options.--timingsβ display operations run time on STDERR.--toplevelβ compress and/or mangle variables in toplevel scope. going all the way up, periodt.--v8β support non-standard Chrome & Node.js.--validateβ perform validation during AST manipulations.--verboseβ print diagnostic messages.--warnβ print warning messages.--webkitβ support non-standard Safari/Webkit.--wrap <name>β embed everything as a function with???exports???corresponding to???name???globally. (yes the manpage really renders those bits as question marks, we love a mysterious queen π)
π οΈ (internal debug use only)
these two are not for casual usage bestie, they're the backstage pass π
--in-situβ warning: replaces original source files with minified output. like, it will eat your originals. be so careful, this is not a drill π--reduce-testβ reduce a standalone test case (assumes cloned repository).
ngl this is the whole page. no options skipped, no flags dropped, we did not play about it π«Ά
and that's a wrap, bestie β this was uglify-js version 3.19.3, from April 2026, and you just read the whole thing. slay, ate, left no crumbs πβ¨ππ¦
π¦ where this page comes from
- ubuntu stonking: uglifyjs 3.19.3-2 Β· BSD-2-Clause
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms