Girish Mahajan (Editor)

Pretty Diff

Updated on
Edit
Like
Comment
Share on FacebookTweet on TwitterShare on LinkedInShare on Reddit
Developer(s)
  
Austin Cheney

Platform
  
Web, Command line

Website
  
prettydiff.com

Initial release
  
March 3, 2009

License
  
Open source

Type
  
Data comparison, Pretty-print, Minify

Pretty Diff is a language-aware data comparison utility implemented in JavaScript. The online utility is capable of source code beautification, 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 JavaScript, the application executes in a web browser or on command line using a stand-alone JavaScript interpreter, such as Node.js.

As of 23 March 2016 Pretty Diff stated it would abandon NPM in response to a list of disagreements. On 18 April 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

    Pretty Diff Wikipedia