A JavaScript AST scope analyzer
JavaScript
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
lib
test
.gitignore
.npmignore
.travis.yml
LICENSE
README.md
index.js
package.json

README.md

ast-scope

Build Status

A JavaScript AST scope analyzer. The module is heavily inspired by escope.

Installation

$ npm install ast-scope

Usage

var esprima = require('esprima');
var as = require('ast-scope');

var ast = esprima.parse('var foo = function() {};');
var topScope = as.analyze(ast);

License

MIT