# prettydiff/prettydiff

Beautifier and language aware code comparison tool for many languages. It also minifies and a few other things.

Repository: https://github.com/prettydiff/prettydiff
Canonical: https://ross.abutalabs.com/products/prettydiff
Homepage: http://prettydiff.com/
Language: TypeScript
License: NOASSERTION
License Family: other
Topics: beautifier, languages, diff, html, javascript, java, typescript, csharp, css, less, xml, html5, prettydiff, xhtml
Last push: 2023-08-14T08:39:06+00:00

## Health v2 (maintenance only)
Score: 23/100 (v2, computed 2026-09-02T17:46:02.011165+00:00)
- activity 0, release rhythm 8, longevity 100
- inputs: {"age_days": 5680, "days_push": 1115, "days_rel": null, "gap_med": null, "n_releases_24m": 0}
- flags: no_license
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 1770, forks 138 (observed 2026-08-28T04:05:33.865166+00:00)

## What it is
Pretty Diff is a language-aware code beautifier and comparison tool written in TypeScript that supports many languages including HTML, JavaScript, TypeScript, CSS, XML, and Java. It can also minify code and perform other formatting-related transformations.

## Use cases
- beautify and format html css and javascript code
- compare two versions of code with language-aware diffing
- minify javascript css and markup files
- format typescript and less files consistently
- diff minified code against source code
- clean up inconsistent indentation in xml and markup files

## When to choose
- you need a single tool that both formats and diffs code across many languages
- you want language-aware diffs rather than plain line-based diffs
- you need minification alongside beautification in one library
- you work primarily with web languages like html css javascript and typescript

## When to avoid
- you need actively maintained tooling with frequent updates and community support
- you prefer modern formatters like prettier with a large plugin ecosystem
- you need formatting for languages outside its supported set
- you require a permissively documented standard license for enterprise compliance

## Facets
- artifact type: library
- maturity: maintenance
- function: formatter, developer-tools, parser, cli
- domain: developer-tools, web-development, files
- platform: cross-platform, cli
- tags: beautifier, code-diff, minification, language-aware, typescript, command-line, nodejs, web-server

## Member repositories
- prettydiff/prettydiff (main) score 23

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:05:33.865166+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-30T03:26:03.840657+00:00, confidence not recorded.
  - readme: https://github.com/prettydiff/prettydiff (fetched 2026-08-28T04:05:33.865166+00:00, sha 01fc0737ddf7)
  - homepage: http://prettydiff.com/ (fetched 2026-08-29T11:04:44.081124+00:00, sha 6e26007395f9)
- Data as of 2026-08-30T08:39:29.467469+00:00.
