Quick and dirty online diff tool

Today I found myself chasing down differences between two build systems.

I want to simply paste the console output for the respective build commands and see where the differences lie. I quickly threw together a python script together to stitch a space tokenizer (line breaks are a bit irregular) with the venerable difflib, based on two simple text files.

However, a bit more interactivity would be nice - having to save into a file is really unnecessary, and I really just wanted to copy and paste things over into something I could also interact a bit with.

Enter JavaScript

I found jsdifflib with a quick search, and it turns out it even has a nice visualization built-in. So, in a few hurried minutes, here goes - Online Diff Tool.

Happy diffing!

Tags:  javascript

Home