styx
Derives the control flow graph from a JavaScript AST in ESTree format.
This project was created as a proof-of-concept implemention for my Bachelor's thesis in computer science:
Install
$ npm install styx
Usage
With the esprima
and styx
npm packages installed, Styx can be used as follows:
;; var code = "var x = 2 + 2;";var ast = Esprima;var flowProgram = Styx;var json = Styx; console;