Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Javascript Console for Windows like JSC [closed]

I have to work on the Windows platform for a project, and I happen to do that project with server-side javascript (yes, I am actually using server-side javascript). Most of my analysis and research I do by working with JSC on my Mac, which allows me to write code and get back a response from the interpreter and load .js files. Now I have been googling and I find most of the results about Firebug or online tools. However, I am looking for something more commandlinish.

Does anyone have a good recommendation for a JavaScript interpreter/console application for the Windows platform that does not require a browser and can be run from the commandline (and supports the loading of external .js files) ?

Many thanks,

like image 607
Shyam Avatar asked Jan 28 '11 14:01

Shyam


1 Answers

node.js has a Windows version. The installer is completely non-invasive, all it does is copies files to Program Files and adds the path to your system $PATH env. variable. If you then start node.exe without parameters it works as a REPL Javascript console.

You can load a .js file like this:

> .load ./file/to/myscript.js

Check out REPL page in Node.js manual for more info.

like image 176
Stop Putin Stop War Avatar answered Oct 06 '22 18:10

Stop Putin Stop War