Skip to content

Latest commit

 

History

History
18 lines (14 loc) · 287 Bytes

README.md

File metadata and controls

18 lines (14 loc) · 287 Bytes

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) 
    }
});