npm.io
0.1.2 • Published 10 years ago

espect

Licence
ISC
Version
0.1.2
Deps
6
Vulns
6
Weekly
0

ESpect


Traverses a program and statically tracks state.

Usage:

const traverse = require('espect').traverse;

const code = String(fs.readFileSync(filePath));
const options = {
    recursive: true // If true, will parse reqiured files
}

// scope - current ESScope for the node.
// node  - an ast node.
traverse(code, options, filePath, (scope, node) => {});