.\" DO NOT MODIFY THIS FILE! It was generated by help2man 1.49.2. .TH TERSER "1" "August 2022" "terser 5.14.2" "User Commands" .SH NAME terser \- JavaScript parser and mangler/compressor and beautifier toolkit .SH SYNOPSIS .B terser [\fI\,options\/\fR] [\fI\,files\/\fR...] .SH OPTIONS .TP \fB\-V\fR, \fB\-\-version\fR output the 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\-f\fR, \fB\-\-format\fR [options] Format options. .TP \fB\-b\fR, \fB\-\-beautify\fR [options] Alias for \fB\-\-format\fR. .TP \fB\-o\fR, \fB\-\-output\fR Output file (default STDOUT). .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\-\-ecma\fR Specify ECMAScript release: 5, 2015, 2016 or 2017... .TP \fB\-e\fR, \fB\-\-enclose\fR [arg[,...][:value[,...]]] Embed output in a big function with configurable arguments and values. .TP \fB\-\-ie8\fR Support non\-standard Internet Explorer 8. .TP \fB\-\-keep\-classnames\fR Do not mangle/drop class names. .TP \fB\-\-keep\-fnames\fR Do not mangle/drop function names. Useful for code relying on Function.prototype.name. .TP \fB\-\-module\fR Input is an ES6 module .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\-\-safari10\fR Support non\-standard Safari 10. .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\-\-wrap\fR Embed everything as a function with ???exports??? corresponding to ???name??? globally. .TP \fB\-h\fR, \fB\-\-help\fR display help for command