get-scope
v0.0.4
Published
get global and function scope
Downloads
3
Readme
get-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 } }