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
i always use this command
node -i -e "$(< yourScript.js)"
works exactly as in Python without any packages.