Software Alternatives, Accelerators & Startups

Prettier VS Terser

Compare Prettier VS Terser and see what are their differences

Prettier logo Prettier

An opinionated code formatter

Terser logo Terser

JavaScript parser, mangler, optimizer and beautifier toolkit for ES6+
  • Prettier Landing page
    Landing page //
    2022-06-27
  • Terser Landing page
    Landing page //
    2023-09-25

Prettier videos

Code Formatting with Prettier in Visual Studio Code

More videos:

  • Review - ESLint + Prettier + VS Code — The Perfect Setup
  • Review - Miranda Lambert -- Only Prettier [REVIEW/RATING]

Terser videos

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

+ Add video

Category Popularity

0-100% (relative to Prettier and Terser)
Code Coverage
100 100%
0% 0
Web Application Bundler
0 0%
100% 100
Code Analysis
100 100%
0% 0
Tool
0 0%
100% 100

User comments

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

Social recommendations and mentions

Based on our record, Prettier seems to be a lot more popular than Terser. While we know about 257 links to Prettier, we've tracked only 13 mentions of Terser. 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.

Prettier mentions (257)

  • How to prevent Prettier putting a full stop on a new line after a link
    Do you use Prettier? Have your configuration settings caused weird HTML rendering issues by adding extra whitespace where you didn't want it? Perhaps after an anchor link at the end of a paragraph? Me, too. Here's what's happening and how you might be able to fix it. - Source: dev.to / 8 days ago
  • Mastering Code Quality: Setting Up ESLint with Standard JS in TypeScript Projects
    In this post, I also use ESLint + Standard JS as my code formatting tools. Formatting JS/TS code by using ESLint is also subjective and opinionated, arguably most people would rather use Prettier instead, which provides more configurable options. - Source: dev.to / 15 days ago
  • To Review or Not to Review: The Debate on Mandatory Code Reviews
    Automating code checks with static code analysis allows us to enforce code styling effectively. By integrating tools into our workflow, we can identify errors at an early stage, while coding instead of blocking us at the end. For instance, flake8 checks Python code for style and errors, eslint performs similar checks for JavaScript, and prettier automatically formats code to maintain consistency. - Source: dev.to / 28 days ago
  • Setting up Doom Emacs for Astro Development
    So anyways, I wanted to hook up Emacs with Astro support. For now, I've just been roughing it out there and running Prettier by itself and turning off save on format and auto-complete. It's been scary. - Source: dev.to / 28 days ago
  • Biome.js : Prettier+ESLint killer ?
    If you're a developer, you're surely familiar with Prettier and ESLint. With over 8 years of existence, they have established themselves as references in the JavaScript ecosystem. - Source: dev.to / about 1 month ago
View more

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 / 7 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 / 9 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 / 10 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

What are some alternatives?

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

ESLint - The fully pluggable JavaScript code quality tool

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

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.

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

Tailwind CSS - A utility-first CSS framework for rapidly building custom user interfaces.

YUI Compressor - Yahoo JS/CSS Compressor