hackvertor / MentalJS

JavaScript parser and sandbox

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

MentalJS

MentalJS is a JavaScript parser and sandbox. It whitelists JavaScript code by adding a "$" suffix to variables and accessors.

Usage

var js = MentalJS();
js.parse({
    code:'1+1',
    result:function(result){ 
      alert(result) 
    }
});

About

JavaScript parser and sandbox

License:Apache License 2.0


Languages

Language:JavaScript 66.4%Language:PHP 22.3%Language:HTML 11.0%Language:CSS 0.4%