Software Alternatives, Accelerators & Startups

Terser VS Closure Compiler

Compare Terser VS Closure Compiler and see what are their differences

Terser logo Terser

JavaScript parser, mangler, optimizer and beautifier toolkit for ES6+

Closure Compiler logo Closure Compiler

The Closure Compiler is a tool for making JavaScript download and run faster.
  • Terser Landing page
    Landing page //
    2023-09-25
  • Closure Compiler Landing page
    Landing page //
    2023-06-23

Terser videos

No Terser videos yet. You could help us improve this page by suggesting one.

+ Add video

Closure Compiler videos

Kevin Macdonald - How Closure Compiler can help protect your IP

More videos:

  • Review - Ильяс Кабиров — Google Closure Compiler — принцип работы и использование в современном фронтенде

Category Popularity

0-100% (relative to Terser and Closure Compiler)
Web Application Bundler
71 71%
29% 29
Tool
62 62%
38% 38
Developer Tools
100 100%
0% 0
Code Analysis
0 0%
100% 100

User comments

Share your experience with using Terser and Closure Compiler. For example, how are they different and which one is better?
Log in or Post with

Social recommendations and mentions

Terser might be a bit more popular than Closure Compiler. We know about 13 links to it since March 2021 and only 10 links to Closure Compiler. We are tracking product recommendations and mentions on various public social media platforms and blogs. They can help you identify which product is more popular and what people think of it.

Terser mentions (13)

  • 10 Bad Habits That Can Slow Down Your JavaScript Applications 🐌
    Example: You've got a main.js file that's as long as a Tolstoy novel. Fix: Use tools like UglifyJS or Terser to minify your code. They'll squeeze out all the unnecessary bits and give you a sleeker, faster-loading file. - Source: dev.to / 8 months ago
  • Things you forgot because of React
    They can do it, it is just turned off by default and require more advanced configuration. https://github.com/terser/terser#cli-mangling-property-names.... - Source: Hacker News / 10 months ago
  • Understanding Source Maps: Simplifying Debugging
    Minifying is a common practice for optimizing production code. (for example, using Terser to minify and mangle JavaScript). - Source: dev.to / 11 months ago
  • Minify private methods in a TypeScript class
    Terser is JavaScript compressor that can minified specific method names. - Source: dev.to / over 1 year ago
  • React Native CI/CD build speed improved by 22% with one line of code
    Every release build of React Native uses terser to reduce the size of your JavaScript. And it operation can be omitted for Staging/Beta builds. - Source: dev.to / over 1 year ago
View more

Closure Compiler mentions (10)

  • [AskJS] Source Filename and Linenumber References in Translated Code
    I’m not exactly sure what you are trying to do but JavaScript Source Maps basically do this same thing with browsers and they use https://developers.google.com/closure/compiler/. Source: over 1 year ago
  • [AskJS] Is there a detailed comparison chart that shows what's supported in JavaScript ES5 versus ES6?
    I'm using the Google Closure Compiler. I believe it has similar capabilities. Source: over 1 year ago
  • Minimal test and performance check of new GHC Javascript backend
    In a real world scenario you'd probably run the resulting JS through Closure Compiler. It would be nice to see how that affects both code size and performance. Source: over 1 year ago
  • Predicting Google Closures (2013)
    Kind of funny that Google actually does have a product called the "Google Closure compiler". It creates different kinds of compilations though. https://developers.google.com/closure/compiler. - Source: Hacker News / over 1 year ago
  • Bro, can you help me with the problem? -friend from McDonalds
    Partially, depending on what's used it also optimizes the javascript code. See Google's closure compiler for more info. Source: about 2 years ago
View more

What are some alternatives?

When comparing Terser and Closure Compiler, you can also consider the following products

JavaScript Obfuscator - JavaScript Obfuscator is a free online tool that obfuscates your source code, preventing it from being stolen and used without permission.

UglifyJS - JavaScript minifier, beautifier, mangler and parser toolkit.

YUI Compressor - Yahoo JS/CSS Compressor

DomainLockJS - Free code snippet to lock javascript files to your domain. Protect javascript code. Easy cut & paste script. Prevent unauthorized use of your scripts and deter code theft.

Uncrustify - Banish crusty code with the Uncrustify C/C++/C#/Obj-C/D/Java/Pawn/VALA source code beautifier.

SonarQube - SonarQube, a core component of the Sonar solution, is an open source, self-managed tool that systematically helps developers and organizations deliver Clean Code.