prettier VS dprint

Compare prettier vs dprint and see what are their differences.


Pluggable and configurable code formatting platform written in Rust. (by dprint)
Our great sponsors
  • Appwrite - The Open Source Firebase alternative introduces iOS support
  • Scout APM - Less time debugging, more time building
  • SonarQube - Static code analysis for 29 languages.
prettier dprint
233 13
42,629 1,357
0.9% 17.3%
9.9 9.3
3 days ago 3 days ago
JavaScript Rust
MIT License MIT License
The number of mentions indicates the total number of mentions that we've tracked plus the number of user suggested alternatives.
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.


Posts with mentions or reviews of prettier. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2022-05-16.
  • How much does having ; at the end matter in javascript?
    1 project | | 18 May 2022
    Use a code formatter like Prettier, configure your code editor to automatically format every time you save, then you'll never have to think about it again. You can choose to use semicolons or not, either way works, but you put that in your settings and the formatter ensures that you are consistent.
  • Painless development setup for React Part 2: Linting & Formatting
    1 project | | 17 May 2022
    Code formatting is essential for teams that want to maintain a codebase with a consistent style. These code style choices might include whether or not to use the semicolon (given that it is optional in Javascript), single quote vs double quote for strings etc. Most of these decisions have little influence on the logic of the code and are based on stylistic preference and thus can be pretty subjective. It's not difficult to imagine how tedious it is to manually add a semicolon to each statement's end. Fortunately, we have code formatting tools like Prettier, which enable us to configure our preference in the JSON file, and it will do the heavy lifting to format the code for us.
  • Create a shareable ESlint configs for Vue projects
    2 projects | | 16 May 2022
    While ESlint fixes the coding style, Prettier can accompany to fix formatting.
  • String Literals in JavaScript: Should I Use Double-quotes or Single-quotes?
    7 projects | | 8 May 2022
    I can also highly recommend Prettier for maintaining a consistent coding style and fixing up existing source code.
  • 15 React Productivity VSCode Extensions (Pack)
    3 projects | | 7 May 2022
    Prettier is an opinionated code formatter. It enforces a consistent style by parsing your code and re-printing it with its own rules that take the maximum line length into account, wrapping code when necessary. Prettier — Code formatter — Visual Studio Marketplace
  • We will OSS the NextJs + web3 starter kit
    8 projects | | 5 May 2022
  • I manage my blog in GitHub repository
    5 projects | | 4 May 2022
    In reference article, use prettier to format the markdown and the code snippets. I implement a text review using textlint and reviewdog in addition to that.
  • Modern, faster alternatives to ESLint
    10 projects | | 3 May 2022
    Prettier is a code formatter. It provides support within the JavaScript ecosystem and specific other languages like Markdown and JSON. Prettier takes our code and reprints it from scratch, taking the line length into account and wrapping code where necessary. It strips away all default styling and ensures that the formatted code conforms to a consistent style. Prettier enforces a consistent code style across the entire codebase because it parses away any original styling and re-prints the parsed AST (Abstract Syntax Tree) with its own rules. Unlike Rome, Prettier is not an outright alternative to ESLint, but we can configure Prettier for code formatting while using ESLint's code quality rules for catching bugs. Let's take a look at how to integrate prettier with ESLint.
  • ESLint settings for TypeScript
    2 projects | | 2 May 2022
  • Understanding SEO and Web Vitals for your NextJS site and how to improve them?
    13 projects | | 1 May 2022


Posts with mentions or reviews of dprint. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2022-02-09.

What are some alternatives?

When comparing prettier and dprint you can also consider the following projects:

black - The uncompromising Python code formatter

JS-Beautifier - Beautifier for javascript

Standard - 🌟 JavaScript Style Guide, with linter & automatic code fixer

prettier-plugin-organize-imports - Make Prettier organize your imports using the TypeScript language service API.

ESLint - Find and fix problems in your JavaScript code.

JSHint - JSHint is a tool that helps to detect errors and potential problems in your JavaScript code

pretty-quick - ⚡ Get Pretty Quick

Drawflow - Simple flow library 🖥️🖱️

markdownlint-cli - MarkdownLint Command Line Interface

lint-staged - 🚫💩 — Run linters on git staged files

clojure-style-guide - A community coding style guide for the Clojure programming language

husky - Git hooks made easy 🐶 woof!