I have a script foo.js that contains some functions I want to play with in the REPL.
foo.js
Is there a way to have node execute my script and then jump into a REPL with all the declared globals, like I can with python -i foo.py or ghci foo.hs?
python -i foo.py
ghci foo.hs