.\" DO NOT MODIFY THIS FILE! It was generated by help2man 1.49.2. .TH UGLIFY-JS "1" "December 2022" "uglify-js 3.17.4" "User Commands" .SH NAME uglify-js \- JavaScript parser, mangler/compressor and beautifier toolkit .SH SYNOPSIS .B uglifyjs [\fI\,files\/\fR...] [\fI\,options\/\fR] .SH OPTIONS .TP \fB\-h\fR, \fB\-\-help\fR Print usage information. `\-\-help options` for details on available options. .TP \fB\-v\fR, \fB\-V\fR, \fB\-\-version\fR Print version number. .TP \fB\-p\fR, \fB\-\-parse\fR Specify parser options. .TP \fB\-c\fR, \fB\-\-compress\fR [options] Enable compressor/specify compressor options. .TP \fB\-m\fR, \fB\-\-mangle\fR [options] Mangle names/specify mangler options. .TP \fB\-\-mangle\-props\fR [options] Mangle properties/specify mangler options. .TP \fB\-b\fR, \fB\-\-beautify\fR [options] Beautify output/specify output options. .TP \fB\-O\fR, \fB\-\-output\-opts\fR Output options (beautify disabled). .TP \fB\-o\fR, \fB\-\-output\fR Output file (default STDOUT). .TP \fB\-\-annotations\fR Process and preserve comment annotations. .TP \fB\-\-no\-annotations\fR Ignore and discard comment annotations. .TP \fB\-\-comments\fR [filter] Preserve copyright comments in the output. .TP \fB\-\-config\-file\fR Read minify() options from JSON file. .TP \fB\-d\fR, \fB\-\-define\fR [=value] Global definitions. .TP \fB\-e\fR, \fB\-\-enclose\fR [arg[,...][:value[,...]]] Embed everything in a big function, with configurable argument(s) & value(s). .TP \fB\-\-expression\fR Parse a single expression, rather than a program. .TP \fB\-\-ie\fR Support non\-standard Internet Explorer. .TP \fB\-\-keep\-fargs\fR Do not mangle/drop function arguments. .TP \fB\-\-keep\-fnames\fR Do not mangle/drop function names. Useful for code relying on Function.prototype.name. .TP \fB\-\-module\fR Process input as ES module (implies \fB\-\-toplevel\fR) .TP \fB\-\-name\-cache\fR File to hold mangled name mappings. .TP \fB\-\-rename\fR Force symbol expansion. .TP \fB\-\-no\-rename\fR Disable symbol expansion. .TP \fB\-\-self\fR Build UglifyJS as a library (implies \fB\-\-wrap\fR UglifyJS) .TP \fB\-\-source\-map\fR [options] Enable source map/specify source map options. .TP \fB\-\-timings\fR Display operations run time on STDERR. .TP \fB\-\-toplevel\fR Compress and/or mangle variables in toplevel scope. .TP \fB\-\-v8\fR Support non\-standard Chrome & Node.js. .TP \fB\-\-validate\fR Perform validation during AST manipulations. .TP \fB\-\-verbose\fR Print diagnostic messages. .TP \fB\-\-warn\fR Print warning messages. .TP \fB\-\-webkit\fR Support non\-standard Safari/Webkit. .TP \fB\-\-wrap\fR Embed everything as a function with ???exports??? corresponding to ???name??? globally. .PP (internal debug use only) .TP \fB\-\-in\-situ\fR Warning: replaces original source files with minified output. .TP \fB\-\-reduce\-test\fR Reduce a standalone test case (assumes cloned repository).