Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/nkzawa/ast-scope
A JavaScript AST scope analyzer
https://github.com/nkzawa/ast-scope
Last synced: 3 days ago
JSON representation
A JavaScript AST scope analyzer
- Host: GitHub
- URL: https://github.com/nkzawa/ast-scope
- Owner: nkzawa
- License: mit
- Created: 2014-02-11T16:57:55.000Z (almost 11 years ago)
- Default Branch: master
- Last Pushed: 2014-04-12T12:15:15.000Z (over 10 years ago)
- Last Synced: 2024-04-24T15:43:29.703Z (8 months ago)
- Language: JavaScript
- Homepage:
- Size: 344 KB
- Stars: 7
- Watchers: 2
- Forks: 2
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-hacking-lists - nkzawa/ast-scope - A JavaScript AST scope analyzer (JavaScript)
README
ast-scope
=============[![Build Status](https://travis-ci.org/nkzawa/ast-scope.png?branch=master)](https://travis-ci.org/nkzawa/ast-scope)
A JavaScript AST scope analyzer. The module is heavily inspired by [escope](https://github.com/Constellation/escope).
## Installation
$ npm install ast-scope## Usage
```js
var esprima = require('esprima');
var as = require('ast-scope');var ast = esprima.parse('var foo = function() {};');
var topScope = as.analyze(ast);
```## License
MIT