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 backend cloud platform
  • Sonar - Write Clean JavaScript Code. Always.
  • InfluxDB - Collect and Analyze Billions of Data Points in Real Time
  • Revelo Payroll - Free Global Payroll designed for tech teams
  • Onboard AI - Learn any GitHub repo in 59 seconds
prettier dprint
403 19
46,704 2,294
0.5% 5.5%
9.7 9.0
1 day ago 23 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 2023-09-17.
  • TypeScript Boilerplate
    6 projects | | 17 Sep 2023
    Code Formatting with Prettier: The code is automatically formatted with Prettier, ensuring consistency in writing style.
  • How I approach and structure Enterprise frontend applications after 4 years of using Next.js
    5 projects | | 9 Sep 2023
  • Common mistakes that backend programmers make in Angular
    2 projects | | 3 Sep 2023
    However, my primary goal wasn't to fix all these linting errors, as I couldn't guarantee that doing so wouldn't introduce unforeseen issues. Instead, I chose to install husky and set up linting and automatic fixing exclusively for committed files. In cases where automatic fixing wasn't feasible, I encouraged the developers to follow the "boy scout rule" and address the errors they encountered. As I delved into these improvements, I also took the opportunity to seamlessly integrate and configure prettier alongside ESLint. After all, who enjoys scrolling through diffs or pull requests with only formatting changes? It just makes the code review process smoother and more pleasant for everyone involved.
  • How to start building a Next.js project
    3 projects | | 2 Sep 2023
    prettier - For automatic formatting of code files
  • Created a Markdown Desktop App with Tauri
    2 projects | | 26 Aug 2023
    During the document writing process, formatting can often interrupt your creative flow. Although Markdown has done away with formatting operations, sometimes you still need to pay attention to details like spaces between Chinese and English, and blank lines between paragraphs. MDX Editor uses prettier to format documents. Just press command+s to automatically format the document.
  • Do you know how to generate html strings with Emacs Lisp?
    2 projects | /r/emacs | 26 Aug 2023
    ;; need prettier' utility installed - (call-process-shell-command "prettier --write index.html" nil 0) ``
  • Prettier and lint your project with husky and git hooks
    4 projects | | 25 Aug 2023
    Let's install Prettier and ESLint:
  • Way to High Confidence: The Ideal Testing Trophy
    11 projects | | 22 Aug 2023
  • Let's Make Learning Frontend Great Again!
    11 projects | | 22 Aug 2023
    LiveCodes provides many of the commonly used developer tools. These include Monaco editor (that powers VS Code), Prettier, Emmet, Vim/Emacs modes, Babel, TypeScript, SCSS, Less, PostCSS, Jest and Testing Library, among others. All these tools run seamlessly in the browser without any installations or configurations. It feels like a very light-weight version of your own local development environment including the keyboard shortcuts, IntelliSense and code navigation features.
  • Create a typescript utility library using Vite
    6 projects | | 14 Aug 2023
    I'm going with Prettier to format the code. Formatting helps us to keep our code uniform for every developer.


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 2023-06-14.

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

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

ESLint - Find and fix problems in your JavaScript code.

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

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

pretty-quick - ⚡ Get Pretty Quick

markdownlint-cli - MarkdownLint Command Line Interface

intellij-rainbow-brackets - 🌈Rainbow Brackets for IntelliJ based IDEs/Android Studio/HUAWEI DevEco Studio

PostCSS - Transforming styles with JS plugins

husky - Git hooks made easy 🐶 woof!

autopep8 - A tool that automatically formats Python code to conform to the PEP 8 style guide.