ast-parentchild
Convert your JavaScript file to acron AST format and then output a json file whihc have parent-child realtionship between nodes
@niweera/node-asterer
A CLI tool to generate the AST of a given JavaScript File and save it in *.JSON format.