When I execute a script with Node.js in command prompt lets say like that :
c:\> node a_script.js
It just exits when the script is ended which is boring because I d'like to test some variables values. I can't find any option using node --help
to avoid that, do you know a way ?
I want to do a Sublime Text Build System
{
"cmd": ["start", "cmd", "/k", "C:/progra~2/nodejs/node.exe", "$file"],
"selector": "source.js",
"shell" : true
}
My script is executed but it exit just after. I expect to go back to REPL but node.exe
closes once it has executed my script.
The solutions provided by the following question didn't worked : How do I load my script into the node.js REPL? since most of the time it implies to type some command in the REPL
I also tried to use --interactive
but no luck.