Pretty Diff

{{Infobox software

| name = Pretty Diff

| developer = Austin Cheney

| released = {{Start date and age|2009|03|03}}

| latest release version = 101.0.0

| latest release date = {{Start date and age|2019|04|21}}

| latest preview version =

| latest preview date =

| programming language = TypeScript

| platform = Web platform

| genre = Data comparison, prettification, minification

| license = CC0

| website = {{Official URL}}

}}

Pretty Diff is a language-aware data comparison{{cite web| url=http://slodive.com/web-development/20-beneficial-web-development-tools/| title=Slodive - 20 Beneficial Web Development Tools}}{{cite web| url=http://www.noupe.com/tools/25-useful-document-and-file-comparison-tools.html| title=Noupe, The Curious Side of Smashing Magazine - 25+ Useful Document and File Comparison Tools| date=2 April 2024}} 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{{cite web| url=https://stackoverflow.com/questions/206441/online-code-beautifier-and-formatter| title=Stack Overflow - Online code beautifier and formatter}} operation prior to executing the diff algorithm. An abbreviated list of unit tests is provided.{{cite web| url=http://prettydiff.com/samples.php| title=Pretty Diff samples| access-date=2012-07-12| archive-url=https://web.archive.org/web/20120731233622/http://prettydiff.com/samples.php| archive-date=2012-07-31| url-status=dead}} The documentation{{cite web| url=http://prettydiff.com/documentation.php| title=documentation| access-date=2012-07-07| archive-url=https://web.archive.org/web/20120731233435/http://prettydiff.com/documentation.php| archive-date=2012-07-31| url-status=dead}} 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.{{cite web| url=https://github.com/prettydiff/prettydiff/issues/291| title=Investigate alternatives to NPM · Issue #291 · prettydiff/prettydiff · GitHub| website=GitHub}} 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.{{cite web| url=https://github.com/prettydiff/prettydiff/releases/tag/v2.0.0| title=Release Pretty Diff v2.0.0 Published · prettydiff/prettydiff · GitHub| website=GitHub}}{{cite web| url=https://www.npmjs.com/package/prettydiff| title=prettydiff - npm| date=2 September 2019}}

The source code is published at the Pretty Diff GitHub repository.{{cite web| url=https://github.com/austincheney/Pretty-Diff| title=Pretty Diff GitHub repository| website=GitHub}}

Alternatives

  • [https://github.com/cemerick/jsdifflib JS Diff Lib] - Diff tool written in JavaScript
  • [http://jsbeautifier.org/ JS Beautify] - HTML and JavaScript beautification
  • [http://www.crockford.com/javascript/jsmin.html JSMin] - Minifier for JavaScript written in JavaScript
  • [https://code.google.com/p/cssmin/ CSSmin] - Minifier for CSS
  • Google Closure Compiler - Minifier for CSS, JavaScript, and HTML.

See also

References

{{reflist}}