I am new to the minification of JavaScript. This is the setting of the problem:
Assuming we have an original JavaScript code A and its minified code A′ (which is generated by a minifier like UglifyJS or Closure Compiler), how can I:
Count the number of variables which have been renamed, and
Map every variable's original name to its minified name
Any detailed instructions are welcomed, with the tool UglifyJS or Closure Compiler would be better :)