Socket
Socket
Sign inDemoInstall

terser

Package Overview
Dependencies
3
Maintainers
1
Versions
171
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 3.14.0-beta to 3.14.0

dist/bundle.js

2

package.json

@@ -7,3 +7,3 @@ {

"license": "BSD-2-Clause",
"version": "3.14.0-beta",
"version": "3.14.0",
"engines": {

@@ -10,0 +10,0 @@ "node": ">=0.8.0"

@@ -6,11 +6,13 @@ terser

A JavaScript parser and mangler/compressor toolkit for ES6+.
*note*: You can support this project on patreon: <a target="_blank" rel="nofollow" href="https://www.patreon.com/terser_jscomp_maintainer"><img src="https://c5.patreon.com/external/logo/become_a_patron_button@2x.png" alt="patron" width="100px" height="auto"></a>. Check out PATRONS.md for our first-tier patrons.
=======
*Note:* Support this project with patreon by clicking [here](https://www.patreon.com/terser_jscomp_maintainer) and becoming a patron.
Terser recommends you use RollupJS to bundle your modules, as that produces smaller code overall.
*Beautification* has been undocumented and is *being removed* from terser, we recommend you use [prettier](https://npmjs.com/package/prettier).
[![Build Status](https://travis-ci.org/terser-js/terser.svg?branch=master)](https://travis-ci.org/terser-js/terser) [![Coverage Status](https://coveralls.io/repos/github/terser-js/terser/badge.svg?branch=master)](https://coveralls.io/github/terser-js/terser?branch=master)
A JavaScript parser, mangler/compressor and beautifier toolkit for ES6+.
Why choose terser?

@@ -87,4 +89,2 @@ ------------------

`reserved` List of names that should not be mangled.
-b, --beautify [options] Beautify output/specify output options:
`beautify` Enabled with `--beautify` by default.
`preamble` Preamble to prepend to the output. You

@@ -464,3 +464,2 @@ can use this to insert a comment, for

output: {
beautify: false,
preamble: "/* minified */"

@@ -923,4 +922,3 @@ }

The code generator tries to output shortest code possible by default. In
case you want beautified output, pass `--beautify` (`-b`). Optionally you
The code generator tries to output shortest code possible. Optionally you
can pass additional arguments that control the code output:

@@ -931,7 +929,2 @@

- `beautify` (default `true`) -- whether to actually beautify the output.
Passing `-b` will set this to true, but you might need to pass `-b` even
when you want to generate minified code, in order to specify additional
arguments, so you can use `-b beautify=false` to override it.
- `braces` (default `false`) -- always insert braces in `if`, `for`,

@@ -947,4 +940,3 @@ `do`, `while` or `with` statements, even if their body is a single

greater to emit shorthand object properties - i.e.: `{a}` instead of `{a: a}`.
The `ecma` option will only change the output in direct control of the
beautifier. Non-compatible features in the abstract syntax tree will still
Non-compatible features in the abstract syntax tree will still
be output as is. For example: an `ecma` setting of `5` will **not** convert

@@ -995,8 +987,2 @@ ES6+ code to ES5.

- `width` (default `80`) -- only takes effect when beautification is on, this
specifies an (orientative) line width that the beautifier will try to
obey. It refers to the width of the line text (excluding indentation).
It doesn't work very well currently, but it does make the code generated
by Terser more readable.
- `wrap_iife` (default `false`) -- pass `true` to wrap immediately invoked

@@ -1003,0 +989,0 @@ function expressions. See

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc