Nanananananananana.. Pat Man!

escontrol

6.1.3 • Public • Published

escontrol

Generate ECMAScript 5 (and hopefully 6, soon) control flow graphs. Really rough working state right now.

var escontrol = require('escontrol')
var esprima = require('esprima')

var ast = esprima.parse('<some code>')
var cfg = escontrol(ast)

while(cfg.advance()) ;

// get all edges!
var edges = cfg.edges()

API

Hoo-boy. This is in a rough state at the moment.

Check out the examples directory for some usage.

License

MIT

Keywords

none

install

npm i escontrol

Downloadsweekly downloads

29

version

6.1.3

license

MIT

last publish

collaborators

  • avatar
Report a vulnerability