JavaScript - Tools


Build Tools: - CSS optimizer
Combine and minify tools
Documentation tools
Static analysis tools
Flow diagram tools
Transpilers / Compilers’s-jscheck/


How to build and install JavaScript Shell?

If you are using Linux, check with your favorite distro package manager. Search for SpiderMonkey or JS. The official build instruction is here.

How can I use JS shell to do syntax checking?

js -C -f filename.js

How can we do a syntax check on a JavaScript file?

For javascript, you need to follow instruction from to install the SpiderMonkey JavaScript Shell and

alias jscheck='/home/khai/jsshell/mozilla/js/src/Linux_All_DBG.OBJ/js -C -f'
jscheck filename.js

If you are using Fedora, you can install the js-1.8.5-7.fc16.x86_64 package ( use yum to search for SpiderMonkey and install appropriate package), and then:

alias jscheck='/usr/bin/js -C -f'
jscheck filename.js

Put the alias file into your .bash_profile

Unless otherwise stated, the content of this page is licensed under Creative Commons Attribution-ShareAlike 3.0 License