Skip to content

Latest commit

 

History

History
21 lines (14 loc) · 386 Bytes

File metadata and controls

21 lines (14 loc) · 386 Bytes

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) => {});