get-scope
v0.0.0get-scope
Install
npm install get-scope
Usage
var esprima = require('esprima')
var getScope = require('get-scope')
var ast = esprima.parse('var a = 1')
getScope.forProgram(ast) // { a: { type: 'Literal', value: 1 } }
npm install get-scope
var esprima = require('esprima')
var getScope = require('get-scope')
var ast = esprima.parse('var a = 1')
getScope.forProgram(ast) // { a: { type: 'Literal', value: 1 } }