An open API service indexing awesome lists of open source software.

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

Awesome Lists containing this project

README

          

# parser.js

[![Build Status](https://travis-ci.org/usablica/parserjs.svg?branch=master)](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.