I am looking for a way to write some simple scripts in javascript, like in ruby. For example, I could write a script like:
var str = "Hello World";
console.log(str);
And I want to call it from my command line as follows:
js hello_world.js
Is there some kind of Javascript runtime that includes a standard library that would allow me to make this script development style? I know there is node.js, but this is specific to the web server, right?
source
share