Determining a Node Scripts Current Working Directory | Task

Ole Ersoy
Jan - 16  -  1 min

Scenario

We are invoking a Commander script and we are wondering what directory it is executing in?

Approach

Within the command being coded run:

log('info', "The current working directory is: ", process.cwd())