Save the below nodeRepl.js
file to somewhere special (like ~/.whatever
). To take advantage of it in a Node REPL, you need to require it before, or when in, the REPL. An easy way to do this is by running node.exe -r ~/.whatever/nodeRepl.js
, so it can have all the globals prepared for you.
Also, there's no notable lag hit, which is a big win!
I've also added my Windows Terminal profiles which I use to help me win!
ENJOY!