Pretty Diff
title: "Pretty Diff" type: doc version: 1 created: 2026-02-28 author: "Wikipedia contributors" status: active scope: public tags: ["free-file-comparison-tools", "creative-commons-license", "free-software-programmed-in-typescript"] topic_path: "general/free-file-comparison-tools" source: "https://en.wikipedia.org/wiki/Pretty_Diff" license: "CC BY-SA 4.0" wikipedia_page_id: 0 wikipedia_revision_id: 0
::data[format=table title="Infobox software"]
| Field | Value |
|---|---|
| name | Pretty Diff |
| developer | Austin Cheney |
| released | |
| latest release version | 101.0.0 |
| latest release date | |
| latest preview date | |
| programming language | TypeScript |
| platform | Web platform |
| genre | Data comparison, prettification, minification |
| license | CC0 |
| website | |
| :: |
| name = Pretty Diff | developer = Austin Cheney | released = | latest release version = 101.0.0 | latest release date = | latest preview version = | latest preview date = | programming language = TypeScript | platform = Web platform | genre = Data comparison, prettification, minification | license = CC0 | website = Pretty Diff is a language-aware data comparison utility implemented in TypeScript. The online utility is capable of source code prettification, minification, and comparison of two pieces of input text. It operates by removing code comments from supported languages and then performs a pretty-print operation prior to executing the diff algorithm. An abbreviated list of unit tests is provided. The documentation claims the JavaScript pretty-print operation conforms to the requirements of JSLint.
As Pretty Diff is written entirely in TypeScript, the application executes in a web browser or on command line using a stand-alone JavaScript interpreter, such as Node.js.
As of March 23, 2016 Pretty Diff stated it would abandon NPM in response to a list of disagreements. On April 18, 2016 in parallel to the release of Pretty Diff version 2.0.0. the NPM package is updated to artificial version 99 where it is effectively locked into version 1.16.37.
The source code is published at the Pretty Diff GitHub repository.
Alternatives
- JS Diff Lib - Diff tool written in JavaScript
- JS Beautify - HTML and JavaScript beautification
- JSMin - Minifier for JavaScript written in JavaScript
- CSSmin - Minifier for CSS
- Google Closure Compiler - Minifier for CSS, JavaScript, and HTML.
References
References
- "Slodive - 20 Beneficial Web Development Tools".
- (2 April 2024). "Noupe, The Curious Side of Smashing Magazine - 25+ Useful Document and File Comparison Tools".
- "Stack Overflow - Online code beautifier and formatter".
- "Pretty Diff samples".
- "documentation".
- "Investigate alternatives to NPM · Issue #291 · prettydiff/prettydiff · GitHub".
- "Release Pretty Diff v2.0.0 Published · prettydiff/prettydiff · GitHub".
- (2 September 2019). "prettydiff - npm".
- "Pretty Diff GitHub repository".
::callout[type=info title="Wikipedia Source"] This article was imported from Wikipedia and is available under the Creative Commons Attribution-ShareAlike 4.0 License. Content has been adapted to SurfDoc format. Original contributors can be found on the article history page. ::