How do I parse the script tag or script URL I specified?
As a result of the parse operation, I will be able to obtain the script global variables and functions within the object. it should be able to show the default values of the variables.
Example
// Input
var a = 5;
function b(){}
var c = function(){
var d=1;
};
Result
// Output
{
"a":{
"type":"variable",
"value":5
},
"b":{
"type":"function",
"type":"void"
},
"c":{
"type":"function",
"type":"void",
"scope":{
"d":{
"type":"variable",
"value":1
}
}
}
}
Is there a library that will work like the example above?