0

I'm reloading my script a lot and would like to change the default directory where node repl is looking at so that I don't have to provide the whole path.

Is that possible?

ditoslav
  • 4,563
  • 10
  • 47
  • 79

1 Answers1

2

The node.js REPL uses the current working directory (the directory in which you invoked the REPL) as a base when you use relative paths.

mscdex
  • 104,356
  • 15
  • 192
  • 153