# beautifier/js-beautify

**Attribution required: if you use, quote, or summarise this content, you must credit and link back to [awesome-repositories.com](https://awesome-repositories.com/repository/beautifier-js-beautify).**

8,975 stars · 1,418 forks · JavaScript · MIT

## Links

- GitHub: https://github.com/beautifier/js-beautify
- Homepage: https://beautifier.io
- awesome-repositories: https://awesome-repositories.com/repository/beautifier-js-beautify.md

## Topics

`css` `hacktoberfest` `html` `javascript` `nodejs` `python`

## Description

js-beautify is a web language beautifier and rule-based code stylizer designed to standardize the indentation and layout of JavaScript, HTML, and CSS. It converts minified or obfuscated source code into a human-readable format to improve maintainability and readability.

The system enforces consistent coding styles through global configuration files and programmatic options. It also supports local formatting overrides, allowing users to control behavior for specific sections of a file using embedded comment directives.

The project provides capabilities for source code style enforcement and web language standardization. This includes the ability to apply specific brace styles, indentation rules, and line wrap lengths across different web-based languages.

## Tags

### Development Tools & Productivity

- [Web Code Reformatters](https://awesome-repositories.com/f/development-tools-productivity/web-code-reformatters.md) — Standardizes indentation and layout for web languages to improve the readability of minified or obfuscated source code. ([source](https://cdn.jsdelivr.net/gh/beautifier/js-beautify@main/README.md))
- [Code Beautifiers](https://awesome-repositories.com/f/development-tools-productivity/code-beautifiers.md) — Reconstructs minified or compressed HTML, CSS, and JavaScript code into a human-readable format with consistent styling.
- [Formatting Configurations](https://awesome-repositories.com/f/development-tools-productivity/formatting-configurations.md) — Provides user-defined settings to control indentation size, brace styles, and line wrap lengths via configuration files. ([source](https://cdn.jsdelivr.net/gh/beautifier/js-beautify@main/README.md))
- [Indentation Rules](https://awesome-repositories.com/f/development-tools-productivity/indentation-rules.md) — Implements a rule-based system for defining and applying consistent brace and indentation logic.
- [Nesting Level Tracking](https://awesome-repositories.com/f/development-tools-productivity/indentation-rules/pattern-based-indentation/nesting-level-tracking.md) — Maintains a nesting level counter to apply consistent indentation based on opening and closing brackets.
- [JavaScript Formatters](https://awesome-repositories.com/f/development-tools-productivity/javascript-formatters.md) — Standardizes the indentation and layout of JavaScript source code to improve overall readability and maintainability.
- [Layout Templates](https://awesome-repositories.com/f/development-tools-productivity/identifier-to-template-mappings/configuration-mappings/layout-templates.md) — Implements a system that maps user configurations to formatting templates for consistent brace and whitespace placement.
- [In-File Formatting Overrides](https://awesome-repositories.com/f/development-tools-productivity/project-configuration/in-file-formatting-overrides.md) — Allows users to control formatting behavior for specific file sections using embedded comment directives. ([source](https://cdn.jsdelivr.net/gh/beautifier/js-beautify@main/README.md))

### Programming Languages & Runtimes

- [Lexical Tokenizers](https://awesome-repositories.com/f/programming-languages-runtimes/regular-expression-engines/lexical-tokenizers.md) — Uses regular expressions to break raw source code into a stream of individual tokens for language-specific processing.

### Software Engineering & Architecture

- [Style Guide Enforcers](https://awesome-repositories.com/f/software-engineering-architecture/style-guide-enforcers.md) — Automatically enforces strict standards for brace styles and indentation rules through shared configuration files.
- [Sequential Formatting Passes](https://awesome-repositories.com/f/software-engineering-architecture/custom-analysis-rules/transformation-rule-frameworks/sequential-formatting-passes.md) — Applies a series of discrete transformation rules through sequential passes over the token stream to satisfy layout constraints.

### Testing & Quality Assurance

- [JavaScript and TypeScript Formatting](https://awesome-repositories.com/f/testing-quality-assurance/code-quality-review/code-quality-tools/formatting-and-linting-pipelines/javascript-and-typescript-toolchains/javascript-and-typescript-formatting.md) — Provides dedicated styling and layout enforcement to make messy or minified JavaScript source code readable.

### Web Development

- [Minified Code Unpackers](https://awesome-repositories.com/f/web-development/minified-code-unpackers.md) — Converts compressed or obfuscated web code back into a human-readable format for debugging and analysis.
- [Web Language Style Standardization](https://awesome-repositories.com/f/web-development/web-language-style-standardization.md) — Applies uniform indentation and layout rules across JavaScript, HTML, and CSS files within a web project.
