A lot of time went into building a system that converts JavaScript code into block diagrams. It helped me greatly develop the program's structure, refine its core parts, eliminate dozens of bugs and turn the block diagram editor into a full-fledged application. With the editor, code is easy to modernize. You can literally change the structure of code on the fly, altering how it works. For example, the following code:
var a = 5, c = 3, b = 32, z = "Hello World";
var x = ( ( 4 * a + b ) * ( 2 * c + a) );
console.log( z );
console.log( x );
will be converted into a visual view: node-editor-javascript-blueprint At this point you can already edit it, run it or perform other operations. The code in the example is trivial; it's shown only to demonstrate converting JavaScript into its visual representation. The system was tested on fairly large frameworks, libraries and various files. The main goal of this modernization is not only to import JavaScript, but also to export it back without any loss.