javascript – How to compare scripts

Question:

There are two scripts. One is minified and the other is not. Minified is an earlier version of the full.

I want to see the difference in the code – the same as I would get when comparing WinMerge or any version control system, if the file was not minified.

Is there any program that compares two versions of code without considering the variable names and the consequences of minification (such as removing semicolons)?

Answer:

There was a similar task, I tried https://prettydiff.com , I was able to find the needed diffs, I'm not sure how it works with global changes.

I tried it in a browser, I had to wait a minute, so if something is really big, then you can try the client for the terminal, there is mini documentation on npm .

Scroll to Top