Run from command line?

Jan 2, 2011 at 11:40 PM
Edited Jan 2, 2011 at 11:42 PM

In the Jint Documentation there is a "Tools->The Shell" item but it is empty.

Is there a way to execute some javascript from windows command line and obtain script execution output?

 

One more thing - is there a way to load some javascript file into current context?

E.g. in my current script there is a foo function defined. I would like to load some .js file with bar function defined so my foo function can call bar.

 

var foo = function() {
  bar();
}

load("bar.js");

foo();