Pretty Diff
Developer(s) | Austin Cheney |
---|---|
Initial release | March 3, 2009 |
Platform | Web, Command line |
Type | file comparison |
License | Open source |
Website | prettydiff.com |
Pretty Diff is a language-aware file comparison[1][2] 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[3] operation prior to executing the diff algorithm. An abbreviated list of unit tests is provided.[4] The documentation[5] 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 or with WSH provided a .wsf file. A NPM package is provided[6] for use with Node.js.
The source code is published at the Pretty Diff GitHub repository.[7]
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.
See also
- Comparison of file comparison tools - Diff tools
- Diff
- Minify
- Pretty-print
- Obfuscated code
- Longest common subsequence problem
- Markup language
- Levenshtein distance
References
- ↑ "Slodive - 20 Beneficial Web Development Tools".
- ↑ "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".
- ↑ "NPM registry, prettydiff".
- ↑ "Pretty Diff GitHub repository".