https://github.com/usablica/parserjs
Javascript AST parser
https://github.com/usablica/parserjs
ast ast-generation extract javascript-ast-parser
Last synced: 6 months ago
JSON representation
Javascript AST parser
- Host: GitHub
- URL: https://github.com/usablica/parserjs
- Owner: usablica
- License: gpl-3.0
- Created: 2016-12-16T20:50:50.000Z (about 9 years ago)
- Default Branch: master
- Last Pushed: 2017-01-01T18:42:54.000Z (about 9 years ago)
- Last Synced: 2025-06-02T02:50:47.470Z (7 months ago)
- Topics: ast, ast-generation, extract, javascript-ast-parser
- Language: JavaScript
- Size: 54.7 KB
- Stars: 7
- Watchers: 2
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# parser.js
[](https://travis-ci.org/usablica/parserjs)
Javascript AST parser
**Under development**
This is an attempt to extract the Parser service of Angluar.js and use it externally with other libararies
or even in Vanillajs.
## Installing
Make sure you have the latest version of NPM installed on your machine, then run:
```
npm install parserjs
```
## Example
```javascript
var parserjs = require('./parser.js').parserjs;
var fn = parserjs.parse('1 == 1');
fn(); // true
```
## Authors
- Angular.js 1.6 contributors for writing Parser
- Afshin Mehrabani to extract the Parser service
## License
Please see the Angular.js license. This repository released under GPL v3.0.