prettier VS black

Compare prettier vs black and see what are their differences.

Our great sponsors
  • Klotho - AWS Cloud-aware infrastructure-from-code toolbox [NEW]
  • Appwrite - The Open Source Firebase alternative introduces iOS support
  • Sonar - Write Clean JavaScript Code. Always.
  • InfluxDB - Build time-series-based applications quickly and at scale.
prettier black
338 270
44,675 31,073
0.8% 2.4%
9.6 9.6
6 days ago 3 days ago
JavaScript Python
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.

prettier

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-01-25.
  • 20 Best Libraries and Tools for React Developers
    11 projects | dev.to | 25 Jan 2023
    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. It is very useful to keep your code readable and make sure that the code format stays consistent when working in a team.
  • x=10 vs let x=10
    3 projects | reddit.com/r/learnjavascript | 20 Jan 2023
    Professional: also set up Prettier, its IDE extension, and use VS Code's "Format on save" feature (or whatever other IDE's equivalent) to quickly and easily format your code to a consistent standard that you define in the configuration for ESLint and Prettier.
  • Goodbye prettier, welcome ESLint
    2 projects | dev.to | 8 Jan 2023
    Like many developers I have used prettier for a long time for most of my projects. It has been the go-to formatting tool for front-end developers and for a good reason. It provides opinionated formatting with minimal options. This coupled with a wide IDE support makes it easy to setup and user.
  • Starting React Native Project in 2023
    13 projects | dev.to | 6 Jan 2023
    Prettier is an opinionated code formatter. Let's install it.
  • Let's do a war
    4 projects | reddit.com/r/ProgrammerHumor | 29 Dec 2022
    Prettier works with lots of languages. Not just js. Check it out: https://prettier.io/
  • The best Angular 15 Starter Project
    7 projects | dev.to | 26 Dec 2022
    ✅ Angular 15 ✅ Angular Material ✅ Unit Testing with Jest ✅ End-to-End Testing with [TestCafé](https://testcafe.io/ ✅ Internationalization with Transloco ✅ Auto documentation with Compodoc ✅ Analyse your project with webpack-bundle-analyzer ✅ Docker ✅ ESLint ✅ Prettier ✅ Commit Linting ✅ AuditJS Audit this application using Sonatype OSS Index ✅ Auto-generate a CHANGELOG with auto-changelog
  • ¿El IDE que se elije cambia algo la forma en que se escriben los programas? ¿Cambia algo la forma de escribir un programa en Java si se usa Eclipse o si se usa NetBeans?
    2 projects | reddit.com/r/programacion | 22 Dec 2022
  • Set up a Node.js App with ESLint and Prettier
    3 projects | dev.to | 19 Dec 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. It is very useful to keep your code readable and make sure that the code format stays consistent when working in a team. It also supports many programming languages such as : JavaScript, TypeScript, CSS, GraphQL, JSON and much more.
  • React-Native Useful Tips
    3 projects | dev.to | 17 Dec 2022
    Resources: https://reactnative.dev/ https://eslint.org/ https://prettier.io/ https://marketplace.visualstudio.com/itemsitemName=kisstkondoros.vscode-codemetrics
  • Automated Frontend Workflow
    17 projects | dev.to | 15 Dec 2022
    An automated frontend workflow is a set of processes and tools that are used to manage and streamline the development of a website or application. This typically involves tasks such as code linting (e.g. Prettier, ESLint), building, testing (e.g. Jest), and deployment, and is designed to make it easier for developers to work on the front end without having to worry about these details. Automated frontend workflows can be created using a variety of tools, such as build tools (e.g. Webpack, Vite), and continuous integration platforms (e.g. Jenkins, GitHub Actions).

black

Posts with mentions or reviews of black. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2023-01-26.

What are some alternatives?

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

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

yapf - A formatter for Python files

Pylint - It's not just a linter that annoys you!

JS-Beautifier - Beautifier for javascript

isort - A Python utility / library to sort imports.

pycodestyle - Simple Python style checker in one Python file

ESLint - Find and fix problems in your JavaScript code.

autoflake - Removes unused imports and unused variables as reported by pyflakes

mypy - Optional static typing for Python

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

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

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