JS2Moose is a software that generates the necessary code for the Moose platform (http://www.moosetechnology.org/) to analyse JavaScript code.
It takes a JavaScript code as input and generates an MSE file for future analysis. The MSE especification can be found at http://www.moosetechnology.org/docs/mse
-
Download the last stable release from https://github.com/gusridd/JS2Moose/raw/master/releases/JS2Moose.zip
-
Extract the project with your favourite program. In ubuntu this can be achieved with the command:
unzip JS2Moose.zip -d JS2Moose
- Enter the folder JS2Moose
cd JS2Moose
-
Open the file index.html with a Web Browser
-
Paste your JavaScript code into the the left textarea
-
Click the button labeled "getMSE"
-
Copy the generated code into a file with .mse extention
-
Import the file using the Moose software.
This project relies on the esprima JavaScript parser from: https://github.com/ariya/esprima It uses JQuery as the DOM manipulator from: http://jquery.com/