Socket
Book a DemoInstallSign in
Socket

escontrol

Package Overview
Dependencies
Maintainers
1
Versions
15
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

escontrol

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

latest
npmnpm
Version
6.1.3
Version published
Maintainers
1
Created
Source

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

FAQs

Package last updated on 05 Apr 2016

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts