command line tool exposing lexical-scope
Want to see pretty graphs? Log in now!
npm install scoped
|8||downloads in the last day|
|33||downloads in the last week|
|174||downloads in the last month|
|Last Published By|
|Version||2.1.2 last updated a month ago|
|Dependencies (7)||optimist, process, cssauron-falafel, cssauron, falafel, ansicolors, concat-stream|
scoped is also a library that will give you all of the scope information about
falafel-generated AST! (it even works with
it notifies you of globals -- both explicit (created by assigning) and implicit (use without definition) -- and, when given a position in the file, will let you know what variables are in scope at that point.
outputs only global usage/leakage information, with line and column numbers.
scoped path/to/file.js --position=line[,column]
outputs scope chain, with usage/definition for each scope.
in the form
,COLUMN may be omitted, if so, it is assumed
column are assumed to be 1-indexed (like most
+signs indicate scope definitions -- i.e., a new variable was created in this scope.
*signs indicate use of a variable from a containing scope.
If the function is named, it will use that to describe the function.
npm install -g scoped