Get cmd or amd dependences
Get cmd dependences
npm install cmd-deps
js:
require('a');
//require('b');
/require('c')/;
'require("d")';
if(true)/require('e')/;
do /require('f')/.test(s); while(false);
require.async('g');
require.async(['h']);
parser output:
[
{
"flag": null,
"path": "a"
},
{
"flag": 'async',
"path": "g"
},
{
"flag": 'async',
"path": "h"
}
]