Software:Pretty Diff
Developer(s) | Austin Cheney |
---|---|
Initial release | March 3, 2009 |
Written in | JavaScript |
Platform | Web platform |
Type | Data comparison, prettification, minification |
License | CC0 |
Website | prettydiff |
Pretty Diff is a language-aware data comparison[1][2] utility implemented in JavaScript. 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[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.
As of 23 March 2016 Pretty Diff stated it would abandon NPM in response to a list of disagreements.[6] 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.[7][8]
The source code is published at the Pretty Diff GitHub repository.[9]
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
- Obfuscated code
- Longest common subsequence problem
- Markup language
- Levenshtein distance
References
- ↑ "Slodive - 20 Beneficial Web Development Tools". http://slodive.com/web-development/20-beneficial-web-development-tools/.
- ↑ "Noupe, The Curious Side of Smashing Magazine - 25+ Useful Document and File Comparison Tools". http://www.noupe.com/tools/25-useful-document-and-file-comparison-tools.html.
- ↑ "Stack Overflow - Online code beautifier and formatter". https://stackoverflow.com/questions/206441/online-code-beautifier-and-formatter.
- ↑ "Pretty Diff samples". http://prettydiff.com/samples.php.
- ↑ "documentation". http://prettydiff.com/documentation.php.
- ↑ "Investigate alternatives to NPM · Issue #291 · prettydiff/prettydiff · GitHub". https://github.com/prettydiff/prettydiff/issues/291.
- ↑ "Release Pretty Diff v2.0.0 Published · prettydiff/prettydiff · GitHub". https://github.com/prettydiff/prettydiff/releases/tag/v2.0.0.
- ↑ "prettydiff - npm". https://www.npmjs.com/package/prettydiff.
- ↑ "Pretty Diff GitHub repository". https://github.com/austincheney/Pretty-Diff.
Original source: https://en.wikipedia.org/wiki/Pretty Diff.
Read more |