ast-scope

0.4.0 • Public • Published

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

/ast-scope/

    Package Sidebar

    Install

    npm i ast-scope

    Weekly Downloads

    2

    Version

    0.4.0

    License

    MIT

    Last publish

    Collaborators

    • nkzawa