---
name: "uglifyjs.terser"
section: "1"
platform: "linux"
package: "uglifyjs.terser"
version: "4.1.2-8"
release: "Debian 11 (Bullseye)"
platforms: ["linux"]
url: "https://new.carta.tech/uglifyjs.terser"
---

# uglifyjs.terser(1)

toolkit

## NAME

terser - toolkit

## SYNOPSIS

**uglifyjs** \[*options*\] \[*files*...\]

## OPTIONS

- **-V**, **--version**

  output the version number

- **-p**, **--parse** \<options\>

  Specify parser options.

- **-c**, **--compress** \[options\]

  Enable compressor/specify compressor options.

- **-m**, **--mangle** \[options\]

  Mangle names/specify mangler options.

- **--mangle-props** \[options\]

  Mangle properties/specify mangler options.

- **-b**, **--beautify** \[options\]

  Beautify output/specify output options.

- **-o**, **--output** \<file\>

  Output file (default STDOUT).

- **--comments** \[filter\]

  Preserve copyright comments in the output.

- **--config-file** \<file\>

  Read minify() options from JSON file.

- **-d**, **--define** \<expr\>\[=value\]

  Global definitions.

- **--ecma** \<version\>

  Specify ECMAScript release: 5, 6, 7 or 8.

- **-e**, **--enclose** \[arg\[,...\]\[:value\[,...\]\]\]

  Embed output in a big function with configurable arguments and values.

- **--ie8**

  Support non-standard Internet Explorer 8.

- **--keep-classnames**

  Do not mangle/drop class names.

- **--keep-fnames**

  Do not mangle/drop function names. Useful for code relying on Function.prototype.name.

- **--module**

  Input is an ES6 module

- **--name-cache** \<file\>

  File to hold mangled name mappings.

- **--rename**

  Force symbol expansion.

- **--no-rename**

  Disable symbol expansion.

- **--safari10**

  Support non-standard Safari 10.

- **--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.

- **--verbose**

  Print diagnostic messages.

- **--warn**

  Print warning messages.

- **--wrap** \<name\>

  Embed everything as a function with ???exports??? corresponding to ???name??? globally.

- **-h**, **--help**

  display help for command
