usablica / parserjs

Javascript AST parser

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

parser.js

Build Status

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

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.

About

Javascript AST parser

License:GNU General Public License v3.0


Languages

Language:JavaScript 100.0%